public void TestGetServiceProxyWithoutEnv() { var configWithoutMsGatewayName = new MiaEnvsConfigurationsImpl { USERID_HEADER_KEY = "useridkey", USER_PROPERTIES_HEADER_KEY = "userpropskey", GROUPS_HEADER_KEY = "groupskey", CLIENTTYPE_HEADER_KEY = "clienttypekey", BACKOFFICE_HEADER_KEY = "backofficekey", MICROSERVICE_GATEWAY_SERVICE_NAME = "" }; var factory = new ServiceClientFactory(configWithoutMsGatewayName); var result = factory.GetServiceProxy(new InitServiceOptions()); Check.That(result).IsNull(); }
public void TestGetServiceProxyWithEnv() { var result = _serviceClientFactory.GetServiceProxy(new InitServiceOptions()); Check.That(result).IsInstanceOf <ServiceProxy>(); }