public void AddAirportInformationToCouchbaseWhenParamIsValid() { Init(); AirportDto airportDto = new AirportDto { AirportCode = "AMS", CityOrAirportName = "Amsterdam", Country = "Netherlands", CountryCode = "461", LatitudeDegree = "52", LongitudeDegree = "4" }; bool actual = m_AirportManagerMock.AddAirportInformationToCouchbase(airportDto); AirportControllerHandler airportControllerHandler = new AirportControllerHandler(m_AirportManagerMock); bool excepted = airportControllerHandler.AddAirportInformationToCouchbase(airportDto); Assert.AreEqual(excepted,actual); }
public void AddAirportInformationToCouchbaseWhenParamIsNull() { AirportDto airportDto = default (AirportDto); AirportControllerHandler airportControllerHandler = new AirportControllerHandler(m_AirportManagerMock); bool actual = airportControllerHandler.AddAirportInformationToCouchbase(airportDto); Assert.AreEqual(false, actual); }