public void Setup()
 {
     serviceDescription = new ServiceDescription(typeof(IMyService), "MyService", new SubserviceDescription[0],
         new[] {new MethodDescription(typeof(void), "DoSomething", new MethodParameterDescription[0])});
     serviceDescriptionBuilder = Substitute.For<IServiceDescriptionBuilder>();
     serviceDescriptionBuilder.Build(typeof(IMyService)).Returns(serviceDescription);
     container = new ServiceImplementationContainer(serviceDescriptionBuilder);
 }
 public void Setup()
 {
     serviceImplementationFactory = Substitute.For<IServiceImplementationFactory>();
     serviceImplementationFactory.CreateImplementation(null, null).ReturnsForAnyArgs(CreateImplementationInfo);
     container = new ServiceImplementationContainer(serviceImplementationFactory);
 }