コード例 #1
0
        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();
        }
コード例 #2
0
 public override bool DeleteAll()
 {
     return(_repository.DeleteAll());
 }