예제 #1
0
        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);
        }
예제 #3
0
        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));
        }
예제 #4
0
 public void MakeReservationReturnsCorrectResult(BookingViewModel sut)
 {
     RequestReservationCommand actual = sut.MakeReservation();
     var expected = sut.AsSource().OfLikeness<RequestReservationCommand>().Without(d => d.Id);
     expected.ShouldEqual(actual);
 }