Esempio n. 1
0
        public void RentVehicle_should_return_valid_reservation(BusinessLogicOption sut)
        {
            var reservation = sut.RentVehicke(50, 51);

            reservation.ValueOrDefault().VehicleId.Should().Be(51);
            reservation.ValueOrDefault().UserId.Should().Be(50);
        }
Esempio n. 2
0
 public void RentVehicle_should_return_none_if_car_is_not_available(BusinessLogicOption sut)
 {
     sut.RentVehicke(50, 200).HasValue.Should().BeFalse();
 }
Esempio n. 3
0
 public void RentVehicle_should_return_null_if_user_has_already_car(BusinessLogicOption sut)
 {
     sut.RentVehicke(10, 50).HasValue.Should().BeFalse();
 }
Esempio n. 4
0
 public void RentVehicle_should_return_null_if_car_was_not_found(BusinessLogicOption sut)
 {
     sut.RentVehicke(30, 300).HasValue.Should().BeFalse();
 }