NewBooking() private method

private NewBooking ( BookingViewModel model ) : System.Web.Mvc.ViewResult
model BookingViewModel
return System.Web.Mvc.ViewResult
 public void NewBookingPostReturnsInstance(HomeController sut, BookingViewModel model)
 {
     ViewResult result = sut.NewBooking(model);
     Assert.NotNull(result);
 }
 public void NewBookingReturnsCorrectTypeOfModel(HomeController sut, int year, int month, int day)
 {
     var result = sut.NewBooking(year, month, day);
     Assert.IsAssignableFrom<BookingViewModel>(result.ViewData.Model);
 }
 public void NewBookingPostReturnsCorrectTypeOfModel(HomeController sut, BookingViewModel model)
 {
     var result = sut.NewBooking(model);
     Assert.IsAssignableFrom<BookingViewModel>(result.ViewData.Model);
 }
 public void NewBookingPostReturnsCorrectViewName(HomeController sut, BookingViewModel model)
 {
     var result = sut.NewBooking(model);
     Assert.Equal("BookingReceipt", result.ViewName);
 }
 public void NewBookingPostReturnsCorrectModel(HomeController sut, BookingViewModel model)
 {
     var result = sut.NewBooking(model);
     Assert.Equal(model, result.ViewData.Model);
 }
 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 NewBookingReturnsModelWithCorrectRemaining([Frozen]Mock<IDayViewReader> readerStub, int remaining, HomeController sut, int year, int month, int day)
 {
     readerStub.Setup(r => r.GetRemainingCapacity(new DateTime(year, month, day))).Returns(remaining);
     var result = sut.NewBooking(year, month, day);
     var vm = Assert.IsAssignableFrom<BookingViewModel>(result.ViewData.Model);
     Assert.Equal(remaining, vm.Remaining);
 }
 public void NewBookingReturnsModelWithCorrectDate(HomeController sut, int year, int month, int day)
 {
     var result = sut.NewBooking(year, month, day);
     var vm = Assert.IsAssignableFrom<BookingViewModel>(result.ViewData.Model);
     Assert.Equal(new DateTime(year, month, day), vm.Date);
 }
 public void NewBookingReturnsInstance(HomeController sut, int year, int month, int day)
 {
     ViewResult result = sut.NewBooking(year, month, day);
     Assert.NotNull(result);
 }