public void GetByIdTestValidId() { FleetContext fleetContext = new FleetContext(); FleetRepository fleetRepository = new FleetRepository(fleetContext); var fleetFiles = fleetRepository.GetByID(1); Assert.IsTrue(fleetFiles.HeaderId==1); }
public void GetByIdTestInvalidId() { FleetContext fleetContext = new FleetContext(); FleetRepository fleetRepository = new FleetRepository(fleetContext); var fleetFiles = fleetRepository.GetByID(3231); Assert.IsNull(fleetFiles); }
public FleetRepository(FleetContext context) : base(context) { this.dbSet = GetAllFleetFiles(); }
public GenericRepository(FleetContext context) { this.context = context; }