Beispiel #1
0
        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");
        }
Beispiel #2
0
        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");
        }