From 12c1611f7121092ce5634afcad8786edeb6d54a0 Mon Sep 17 00:00:00 2001 From: Pyro <732603@gmail.com> Date: Fri, 15 Nov 2024 03:10:15 +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/ClientRepository.cs | 28 ++++++++++++++++++ .../Implementations/ComponentRepository.cs | 28 ++++++++++++++++++ .../Implementations/OrderRepository.cs | 28 ++++++++++++++++++ .../Implementations/ProductRepository.cs | 29 +++++++++++++++++++ .../Implementations/SupplierRepository.cs | 28 ++++++++++++++++++ .../Implementations/SupplyRepository.cs | 28 ++++++++++++++++++ 6 files changed, 169 insertions(+) create mode 100644 ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/ClientRepository.cs create mode 100644 ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/ComponentRepository.cs create mode 100644 ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/OrderRepository.cs create mode 100644 ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/ProductRepository.cs create mode 100644 ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/SupplierRepository.cs create mode 100644 ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/SupplyRepository.cs diff --git a/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/ClientRepository.cs b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/ClientRepository.cs new file mode 100644 index 0000000..add3ac1 --- /dev/null +++ b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/ClientRepository.cs @@ -0,0 +1,28 @@ +using ProjectConfectionaryFactory.Entities; + +namespace ProjectConfectionaryFactory.Repositories.Implementations; + +public class ClientRepository : IClientRepository +{ + public void CreateClient(Client client) + { + } + + public void DeleteClient(int id) + { + } + + public Client ReadClientById(int id) + { + return Client.CreateEntity(0, string.Empty, string.Empty, 0, string.Empty); + } + + public IEnumerable ReadClients() + { + return []; + } + + public void UpdateClient(Client client) + { + } +} diff --git a/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/ComponentRepository.cs b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/ComponentRepository.cs new file mode 100644 index 0000000..0278729 --- /dev/null +++ b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/ComponentRepository.cs @@ -0,0 +1,28 @@ +using ProjectConfectionaryFactory.Entities; + +namespace ProjectConfectionaryFactory.Repositories.Implementations; + +public class ComponentRepository : IComponentRepository +{ + public void CreateComponent(Component component) + { + } + + public void DeleteComponent(int id) + { + } + + public Component ReadComponentById(int id) + { + return Component.CreateEntity(0, string.Empty, 0, 0); + } + + public IEnumerable ReadComponents() + { + return []; + } + + public void UpdateComponent(Component component) + { + } +} diff --git a/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/OrderRepository.cs b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/OrderRepository.cs new file mode 100644 index 0000000..bb32d1c --- /dev/null +++ b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/OrderRepository.cs @@ -0,0 +1,28 @@ +using ProjectConfectionaryFactory.Entities; + +namespace ProjectConfectionaryFactory.Repositories.Implementations; + +public class OrderRepository : IOrderRepository +{ + public void CreateOrder(Order order) + { + } + + public void DeleteOrder(int id) + { + } + + public Order ReadOrderById(int id) + { + return Order.CreateEntity(0, 0, false); + } + + public IEnumerable ReadOrders() + { + return []; + } + + public void UpdateOrder(Order order) + { + } +} diff --git a/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/ProductRepository.cs b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/ProductRepository.cs new file mode 100644 index 0000000..6b6894e --- /dev/null +++ b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/ProductRepository.cs @@ -0,0 +1,29 @@ +using ProjectConfectionaryFactory.Entities; +using ProjectConfectionaryFactory.Entities.Enums; + +namespace ProjectConfectionaryFactory.Repositories.Implementations; + +public class ProductRepository : IProductRepository +{ + public void CreateProduct(Product product) + { + } + + public void DeleteProduct(int id) + { + } + + public Product ReadProductById(int id) + { + return Product.CreateEntity(0, ConfectionaryType.None, string.Empty, 0); + } + + public IEnumerable ReadProducts() + { + return []; + } + + public void UpdateProduct(Product product) + { + } +} diff --git a/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/SupplierRepository.cs b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/SupplierRepository.cs new file mode 100644 index 0000000..cc400bc --- /dev/null +++ b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/SupplierRepository.cs @@ -0,0 +1,28 @@ +using ProjectConfectionaryFactory.Entities; + +namespace ProjectConfectionaryFactory.Repositories.Implementations; + +public class SupplierRepository : ISupplierRepository +{ + public void CreateSupplier(Supplier supplier) + { + } + + public void DeleteSupplier(int id) + { + } + + public Supplier ReadSupplierById(int id) + { + return Supplier.CreateEntity(0, string.Empty, 0, string.Empty); + } + + public IEnumerable ReadSuppliers() + { + return []; + } + + public void UpdateSupplier(Supplier supplier) + { + } +} diff --git a/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/SupplyRepository.cs b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/SupplyRepository.cs new file mode 100644 index 0000000..76d807e --- /dev/null +++ b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/SupplyRepository.cs @@ -0,0 +1,28 @@ +using ProjectConfectionaryFactory.Entities; + +namespace ProjectConfectionaryFactory.Repositories.Implementations; + +public class SupplyRepository : ISupplyRepository +{ + public void CreateSupply(Supply supply) + { + } + + public void DeleteSupply(int id) + { + } + + public Supply ReadSupplyById(int id) + { + return Supply.CreateEntity(0, 0, 0, 0, false); + } + + public IEnumerable ReadSupplys() + { + return []; + } + + public void UpdateSupply(Supply supply) + { + } +}