public void Setup() { serviceImplementationFactory = Substitute.For <IServiceImplementationFactory>(); serviceImplementationFactory.CreateImplementation(null, null).ReturnsForAnyArgs(CreateImplementationInfo); container = new ServiceImplementationContainer(serviceImplementationFactory); }
private ServiceImplementationInfo CreateNew(string scope) { return(serviceImplementationFactory.CreateImplementation(serviceName, scope)); }
public void Setup() { serviceImplementationFactory = Substitute.For<IServiceImplementationFactory>(); serviceImplementationFactory.CreateImplementation(null, null).ReturnsForAnyArgs(CreateImplementationInfo); container = new ServiceImplementationContainer(serviceImplementationFactory); }