Пример #1
0
        public async Task AddVehicleMakeAsync()
        {
            // Arrange

            // Act
            var vehicleMake = await _vehicleService.AddVehicleMakeAsync(_testMake1);

            // Assert
            var vehicleMakesInDb = await _context.VehicleMakes.ToListAsync();

            Assert.AreEqual(1, vehicleMakesInDb.Count);
            Assert.AreEqual(_testMake1.Name, vehicleMakesInDb[0].Name);
        }