public void Should__Not_Edit_Vehicle() { var inMemoryRepository = new InMemoryData <Vehicle>(_logger.Object); var result = inMemoryRepository.Edit(new Guid(carid), GetCar()); Assert.False(result, "Test Edit failed for failure case"); }
public void Should_Edit_Vehicle() { var inMemoryRepository = new InMemoryData <Vehicle>(_logger.Object); inMemoryRepository.Add(GetCar()); var result = inMemoryRepository.Edit(new Guid(carid), GetCar()); Assert.True(result, "Test Edit failed for success case"); }