public Tests() { string basePath = @"D:\Vinod\repos\Alice\Alice\RoomBookingExtension.Tests\TestData"; string bookingDataFile = System.IO.Path.Combine(basePath, "bookings.json"); string roomsDataFile = System.IO.Path.Combine(basePath, "rooms.json"); _repository = new BookingRepository(bookingDataFile, roomsDataFile); _dateToTest = DateTime.Now.Date.AddDays(1); _dateToTest = DateTime.SpecifyKind(_dateToTest, DateTimeKind.Unspecified); _repository.DeleteAll(); }
public override bool DeleteAll() { return(_repository.DeleteAll()); }