public void GetAll_ShouldReturnAllElements() { var vehicleDataRead = new VehicleDataRead(_context); var vehicles = vehicleDataRead.GetAll(); Assert.Equal(_context.Vehicles.Count(),vehicles.Count()); }
public async Task Get_ShouldReturnCorrectRecord(int id, string manufacturer, string model, string color) { var vehicleDataRead = new VehicleDataRead(_context); var vehicle = await vehicleDataRead.GetAsync(id); Assert.Equal(id, vehicle.VehicleId); Assert.Equal(manufacturer, vehicle.Manufacturer); Assert.Equal(model, vehicle.Model); Assert.Equal(color, vehicle.Color); }