public void CarSpaceFull() { //Arrange Vehicle vehicle = VehicleDataObject.CreateCarVehicle(); List <Vehicle> listCars = VehicleDataObject.CreateListCars(); //Act vehicleQuery.GetAllActiveVehicles(Arg.Any <string>()).Returns(listCars); isRegisterSuccess = vehicleBusinessLogic.TryCheckInVehicle(out errorMessage, vehicle); //Assert Assert.False(isRegisterSuccess); Assert.NotEmpty(errorMessage); }
public List <Vehicle> GetAllActiveVehicles() { return(vehicleQuery.GetAllActiveVehicles()); }