public void Then_IsCorporatePassWithCorporateAgent() { mockFactory.ClearExpectations(); bool expected = true; string salesAgent = "Corporate"; int amountOfBooking = 1; var booking = BookingProvider.GetBookings(salesAgent, amountOfBooking).First(); _XXXLibraryConfigurationMock.Expects.One.GetProperty <string>(x => x.PartialCodeForCorporateAgent).WillReturn("corp"); bool actual = Sut.IsCorporate(booking); Assert.IsTrue(actual == expected, "Expected to pass IsCorporate feature."); mockFactory.VerifyAllExpectationsHaveBeenMet(); }
public bool IsCorporate(BookingDTO bookingDto) { var booking = _localMapper.Map <BookingDTO, Booking>(bookingDto); return(_bookingValidationDomainServices.IsCorporate(booking)); }