public void ServiceFactory_VerwachtUnknownServiceLocatorException() { //Arrange var config = new ServiceLocatorConfigSection(); config.Active = "unknownServiceLocator"; var serviceFactory = new ServiceFactory<IKlant>("BSBeheerKlant", config); //Assert Assert.IsInstanceOfType(serviceFactory.ServiceLocator, typeof(WebServiceLocator<IKlant>)); }
public void ServiceFactory_GebruiktWebServiceLocator() { //Arrange var config = new ServiceLocatorConfigSection(); config.Active = "webServiceLocator"; config.WebServiceLocator.Address = "http://www.test.nl"; config.WebServiceLocator.Binding = "basicHttpBinding"; var serviceFactory = new ServiceFactory<IKlant>("BSBeheerKlant", config); //Assert Assert.IsInstanceOfType(serviceFactory.ServiceLocator, typeof(WebServiceLocator<IKlant>)); }