public void RemoveCar_CorrectKey_ShouldReturnSucces() { //Arrange ParkingOperations operations = new ParkingOperations(); string carNumber = "B24FGT"; string key = "56"; DateTime arrivalTime = DateTime.Now.Subtract(new TimeSpan(1, 2, 34)); //Act operations.AddCar(carNumber, key); var result = operations.RemoveCar(carNumber, key, ref arrivalTime); //Assert Assert.AreEqual(result, Warnings.Succes); }
public void RemoveCar_NullValue_ShouldReturnWarning() { //Arrange ParkingOperations operations = new ParkingOperations(); string carNumber = null; string key = "56"; DateTime arrivalTime = DateTime.Now.Subtract(new TimeSpan(1, 2, 34)); //Act operations.RemoveCar(carNumber, key, ref arrivalTime); var result = operations.AddCar(carNumber, key); //Assert Assert.AreEqual(result, Warnings.Null); }