Exemplo n.º 1
0
        public RemoteApiTests()
        {
            _soapClient = new FakeOnlineBookingClient();

            // To connect these tests to the real API:
            //  1. Comment out the line above that creates a FakeOnlineBookingClient
            //  2. Uncomment the 2 lines below
            //  3. Add 3 system environment variables API_ENDPOINT, API_USERNAME, API_PASSWORD
            //  4. Restart visual studio

            // IConfiguration configuration = new ConfigurationBuilder().AddEnvironmentVariables().Build();
            // _soapClient = OnlineBookingClientFactory.GetClient(configuration);
        }
 public RemoteApiTests()
 {
     _soapClient = new FakeOnlineBookingClient();
 }