From 0f57d551c74937ca3558f0d0fce51852df1559e7 Mon Sep 17 00:00:00 2001 From: F1rsTTeaM Date: Sun, 17 Nov 2024 13:32:34 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D0=B0=D0=BB=D0=B8=D0=B7=D0=B0?= =?UTF-8?q?=D1=86=D0=B8=D1=8F=20=D0=B8=D0=BD=D1=82=D0=B5=D1=80=D1=84=D0=B5?= =?UTF-8?q?=D0=B9=D1=81=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Implementations/CarRepository.cs | 28 +++++++++++++++++++ .../Implementations/DriverRepository.cs | 28 +++++++++++++++++++ .../Implementations/FuelRepository.cs | 28 +++++++++++++++++++ .../Implementations/RefillRepository.cs | 15 ++++++++++ .../Implementations/RouteRepository.cs | 28 +++++++++++++++++++ .../Implementations/TripRepository.cs | 15 ++++++++++ 6 files changed, 142 insertions(+) create mode 100644 FuelAndLubricants/FuelAndLubricants/Repositories/Implementations/CarRepository.cs create mode 100644 FuelAndLubricants/FuelAndLubricants/Repositories/Implementations/DriverRepository.cs create mode 100644 FuelAndLubricants/FuelAndLubricants/Repositories/Implementations/FuelRepository.cs create mode 100644 FuelAndLubricants/FuelAndLubricants/Repositories/Implementations/RefillRepository.cs create mode 100644 FuelAndLubricants/FuelAndLubricants/Repositories/Implementations/RouteRepository.cs create mode 100644 FuelAndLubricants/FuelAndLubricants/Repositories/Implementations/TripRepository.cs diff --git a/FuelAndLubricants/FuelAndLubricants/Repositories/Implementations/CarRepository.cs b/FuelAndLubricants/FuelAndLubricants/Repositories/Implementations/CarRepository.cs new file mode 100644 index 0000000..5759289 --- /dev/null +++ b/FuelAndLubricants/FuelAndLubricants/Repositories/Implementations/CarRepository.cs @@ -0,0 +1,28 @@ +using FuelAndLubricants.Entities; + +namespace FuelAndLubricants.Repositories.Implementations; + +public class CarRepository : ICarRepository +{ + public void CreateCar(Car car) + { + } + + public void DeleteCar(int id) + { + } + + public Car ReadCarByID(int id) + { + return Car.CreateEntity(0, string.Empty, string.Empty, 0, 0, 0); + } + + public IEnumerable ReadCars() + { + return []; + } + + public void UpdateCar(Car car) + { + } +} diff --git a/FuelAndLubricants/FuelAndLubricants/Repositories/Implementations/DriverRepository.cs b/FuelAndLubricants/FuelAndLubricants/Repositories/Implementations/DriverRepository.cs new file mode 100644 index 0000000..7194bc2 --- /dev/null +++ b/FuelAndLubricants/FuelAndLubricants/Repositories/Implementations/DriverRepository.cs @@ -0,0 +1,28 @@ +using FuelAndLubricants.Entities; + +namespace FuelAndLubricants.Repositories.Implementations; + +public class DriverRepository : IDriverRepository +{ + public void CreateDriver(Driver driver) + { + } + + public void DeleteDriver(int id) + { + } + + public Driver ReadDriverByID(int id) + { + return Driver.CreateEntity(0, string.Empty, string.Empty, 0); + } + + public IEnumerable ReadDrivers() + { + return []; + } + + public void UpdateDriver(Driver driver) + { + } +} diff --git a/FuelAndLubricants/FuelAndLubricants/Repositories/Implementations/FuelRepository.cs b/FuelAndLubricants/FuelAndLubricants/Repositories/Implementations/FuelRepository.cs new file mode 100644 index 0000000..d2ad30b --- /dev/null +++ b/FuelAndLubricants/FuelAndLubricants/Repositories/Implementations/FuelRepository.cs @@ -0,0 +1,28 @@ +using FuelAndLubricants.Entities; + +namespace FuelAndLubricants.Repositories.Implementations; + +public class FuelRepository : IFuelRepository +{ + public void CreateDriver(Fuel_And_Lubricants fuel) + { + } + + public void DeleteFuel(int id) + { + } + + public Fuel_And_Lubricants ReadFuelByID(int id) + { + return Fuel_And_Lubricants.CreateEntity(0, 0, 0, 0); + } + + public IEnumerable ReadFuels() + { + return []; + } + + public void UpdateFuel(Fuel_And_Lubricants fuel) + { + } +} diff --git a/FuelAndLubricants/FuelAndLubricants/Repositories/Implementations/RefillRepository.cs b/FuelAndLubricants/FuelAndLubricants/Repositories/Implementations/RefillRepository.cs new file mode 100644 index 0000000..719e34c --- /dev/null +++ b/FuelAndLubricants/FuelAndLubricants/Repositories/Implementations/RefillRepository.cs @@ -0,0 +1,15 @@ +using FuelAndLubricants.Entities; + +namespace FuelAndLubricants.Repositories.Implementations; + +public class RefillRepository : IRefillRepository +{ + public void CreateRefill(Refill refill) + { + } + + public IEnumerable ReadRefills(DateTime? dateFrom = null, DateTime? dateTo = null, int? fuelId = null, int? carId = null) + { + return []; + } +} diff --git a/FuelAndLubricants/FuelAndLubricants/Repositories/Implementations/RouteRepository.cs b/FuelAndLubricants/FuelAndLubricants/Repositories/Implementations/RouteRepository.cs new file mode 100644 index 0000000..cc9e08e --- /dev/null +++ b/FuelAndLubricants/FuelAndLubricants/Repositories/Implementations/RouteRepository.cs @@ -0,0 +1,28 @@ +using FuelAndLubricants.Entities; + +namespace FuelAndLubricants.Repositories.Implementations; + +public class RouteRepository : IRouteRepository +{ + public void CreateRoute(Route route) + { + } + + public void DeleteRoute(int id) + { + } + + public Route ReadRouteByID(int id) + { + return Route.CreateEntity(0, string.Empty, string.Empty, 0); + } + + public IEnumerable ReadRoutes() + { + return []; + } + + public void UpdateRoute(Route route) + { + } +} diff --git a/FuelAndLubricants/FuelAndLubricants/Repositories/Implementations/TripRepository.cs b/FuelAndLubricants/FuelAndLubricants/Repositories/Implementations/TripRepository.cs new file mode 100644 index 0000000..9cd8e6f --- /dev/null +++ b/FuelAndLubricants/FuelAndLubricants/Repositories/Implementations/TripRepository.cs @@ -0,0 +1,15 @@ +using FuelAndLubricants.Entities; + +namespace FuelAndLubricants.Repositories.Implementations; + +public class TripRepository : ITripRepository +{ + public void CreateTrip(Trip trip) + { + } + + public IEnumerable ReadTrips(DateTime? dateFrom = null, DateTime? dateTo = null, int? carId = null, int? driverId = null, int? routeId = null) + { + return []; + } +}