Тесты

This commit is contained in:
2025-02-17 21:07:05 +04:00
parent 3b5ffb40e1
commit ba060a7e21
15 changed files with 1817 additions and 6 deletions

View File

@@ -5,7 +5,7 @@ using CatHasPawsContratcs.Infrastructure;
namespace CatHasPawsContratcs.DataModels;
public class SaleDataModel(string id, string workerId, string? buyerId, double sum, DiscountType discountType, double discount, bool isCancel, List<SaleProductDataModel> products) : IValidation
public class SaleDataModel(string id, string workerId, string? buyerId, double sum, DiscountType discountType, double discount, bool isCancel, List<SaleProductDataModel> saleProducts) : IValidation
{
public string Id { get; private set; } = id;
@@ -23,7 +23,7 @@ public class SaleDataModel(string id, string workerId, string? buyerId, double s
public bool IsCancel { get; private set; } = isCancel;
public List<SaleProductDataModel> Products { get; private set; } = products;
public List<SaleProductDataModel> Products { get; private set; } = saleProducts;
public void Validate()
{