public Repository(List <RentContract> contracts, List <User> users, Park park) { Contracts = contracts ?? throw new ArgumentNullException(nameof(contracts)); Users = users ?? throw new ArgumentNullException(nameof(users)); Park = park ?? throw new ArgumentNullException(nameof(park)); }
static public Park GetPark() { Park park = new Park(new List <Car>(), new List <Inspection>()); return(park); }