示例#1
0
        public async Task DeleteVehicleMakeAsync()
        {
            // Arrange
            _context.VehicleMakes.Add(_testMake1);
            await _context.SaveChangesAsync();

            // Act
            await _vehicleService.DeleteVehicleMakeAsync(_testMake1);

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