public void TomtFeltTest() { // Admin efterlader et tomt felt -- viser ugyldigt //Arange SummerHouse summerhouse = new SummerHouse(); //Act //Assert }
public void TotalPriceTest() { //Arrange SummerHouse summerHouse = new SummerHouse(); Booking booking = new Booking(); summerHouse.PricePrNight = 300; booking.CheckInDate = new DateTime(2017, 12, 7); booking.CheckOutDate = new DateTime(2017, 12, 10); double expectedresult = 900; TimeSpan numberofdays = booking.CheckOutDate - booking.CheckInDate; //Act double actualresult = (numberofdays.Days * booking.GetPrice()); //Assert Assert.AreEqual(expectedresult, actualresult); }