Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored BookingShould.cs #62

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,23 @@ private void GetTheCorrectStatusWhenTheBookingHasNotStartedYet()
var bookingStartDate = new DateTime(2020, 6, 26, 19, 0, 0);
var bookingEndDate = new DateTime(2020, 7, 14, 16, 0, 0);

var booking = new Booking(
new BookingId("2c1e34d0-1430-4307-80bf-a71761f71390"),
bookingStartDate,
bookingEndDate,
new CustomerId("72cf3524-7838-45f3-8179-2e75abe5e81c"),
new CustomerName("Perico Los Palotes"),
new EmailAddress("[email protected]"),
BookingType.VACATION,
DiscountType.NONE,
new DiscountValue(0),
TaxType.NONE,
new TaxValue(0)
);
private Booking CreateBooking(DateTime startDate, DateTime endDate)
{
return new Booking(
new BookingId("2c1e34d0-1430-4307-80bf-a71761f71390"),
startDate,
endDate,
new CustomerId("72cf3524-7838-45f3-8179-2e75abe5e81c"),
new CustomerName("Perico Los Palotes"),
new EmailAddress("[email protected]"),
BookingType.VACATION,
DiscountType.NONE,
new DiscountValue(0),
TaxType.NONE,
new TaxValue(0)
);
}


Assert.Equal(BookingStatus.NOT_STARTED, booking.StatusFor(dateBeforeBookingHasStarted));
}
Expand Down