public void MakeReservationReturnsCorrectResult(BookingViewModel sut) { RequestReservationCommand actual = sut.MakeReservation(); var expected = sut.AsSource().OfLikeness <RequestReservationCommand>().Without(d => d.Id); expected.ShouldEqual(actual); }
public void MakeNewReservationReturnsCorrectResult(BookingViewModel sut) { MakeReservationCommand result = sut.MakeNewReservation(); var expected = sut.AsSource().OfLikeness <MakeReservationCommand>().Without(d => d.Id); expected.ShouldEqual(result); }
public void NewBookingPostCorrectlySendsOnChannel([Frozen] Mock <IChannel> channelMock, HomeController sut, BookingViewModel model) { sut.NewBooking(model); var expected = model.AsSource().OfLikeness <MakeReservationCommand>().Without(d => d.Id); channelMock.Verify(c => c.Send(expected)); }
public void MakeReservationReturnsCorrectResult(BookingViewModel sut) { RequestReservationCommand actual = sut.MakeReservation(); var expected = sut.AsSource().OfLikeness<RequestReservationCommand>().Without(d => d.Id); expected.ShouldEqual(actual); }