Тесты
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user