public void SaveBookingTest() { var testUnitOfWork = new TestUnitOfWork(); var service = new BookingService(new TestBookingRepository(GetBookings()), testUnitOfWork); service.SaveBooking(); Assert.IsTrue(testUnitOfWork.Commited); }
public void GetSaveAirportTest() { var testUnitOfWork = new TestUnitOfWork { Commited = false }; AirportService service = new AirportService(new TestAirportRepository(null), testUnitOfWork); service.SaveAirport(); Assert.IsTrue(testUnitOfWork.Commited); }