public void GetAirport() { var s = new AirportService(new TestStorageService()); var a = s.GetByIataCode("BLL"); Assert.AreEqual <string>("BLL", a.IataCode); }
public void AddAirport() { var s = new AirportService(new TestStorageService()); var a = new Airport { IataCode = "ARN", Name = "Arlanda", Latitude = 50.1234, Longitude = 51.456, }; s.Create(a); var na = s.GetByIataCode("ARN"); Assert.AreEqual <string>("ARN", a.IataCode); }