Пример #1
0
        public async Task DeleteVehicleByModelAsync()
        {
            // Arrange
            _context.Vehicles.Add(_testVehicle1);
            await _context.SaveChangesAsync();

            // Act
            await _vehicleService.DeleteVehicleAsync(_testVehicle1);

            // Assert
            Assert.IsFalse(await _context.Vehicles.AnyAsync());
        }