Matthew, BadImageFormat aside, if IOnlineAVLVehicleService inherits from IClientChannel, why do you need to use MultiMock? CreateMock should be good to go.
IOnlineAVLVehicleService vehicleService = mock.CreateMultiMock<IOnlineAVLVehicleService>(); IClientChannel clientChannel = vehicleService; Assert.IsNotNull(clientChannel); // this should pass! Cheers, Kenneth On Mon, Jul 6, 2009 at 12:35 AM, Matthew Evans<[email protected]> wrote: > > The IOnlineAVLVehicleService interface inherits from > System.ServiceModel.IClientChannel. > This current configuration throws a BadImageFormat error, where as I > am unaware of any alternative to create multiple remote mocks. > > IOnlineAVLVehicleService vehicleService = > mock.CreateMultiMock<IOnlineAVLVehicleService>(new Type[] { typeof > (IOnlineAVLVehicleService), typeof(IClientChannel) }); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Rhino.Mocks" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/RhinoMocks?hl=en -~----------~----~----~----~------~----~------~--~---
