UpdateDriver() public method

public UpdateDriver ( IDriver newDriverDetails ) : OpResult
newDriverDetails IDriver
return OpResult
        public void UpdateDriverValid()
        {
            //Arrange
            IDriver driverToSave = new Driver
            {
                ID = 1,
                FirstName = "Dave",
                LastName = "Grayson",
                Country = "Scotland",
                CardNumber = "098765789"
            };

            var driverDataProvider = Substitute.For<IDriverDataProvider>();
            driverDataProvider.Update(driverToSave).Returns(OpResult.Success);

            //Act
            var driverModel = new DriverModel(driverDataProvider);
            OpResult result = driverModel.UpdateDriver(driverToSave);

            //Assert
            Assert.AreEqual(OpResult.Success, result);
        }
        public void UpdateDriverInvalidNullDriver()
        {
            var driverDataProvider = Substitute.For<IDriverDataProvider>();
            driverDataProvider.Update(null).Returns(OpResult.NullParameter);

            //Act
            var driverModel = new DriverModel(driverDataProvider);
            OpResult result = driverModel.UpdateDriver(null);

            //Assert
            Assert.AreEqual(OpResult.Success, result);
        }