небольшые добавления

This commit is contained in:
maxnes3 2023-04-08 15:18:15 +04:00
parent 064a82c064
commit 5362b358c1
3 changed files with 5 additions and 5 deletions

View File

@ -19,8 +19,8 @@ namespace CaseAccountingBusinessLogic.BusinessLogics
public CaseLogic(ILogger<CaseLogic> logger, ICaseStorage caseStorage)
{
_logger = logger;
_caseStorage = caseStorage;
_logger = logger ?? throw new ArgumentNullException(nameof(logger));
_caseStorage = caseStorage ?? throw new ArgumentNullException(nameof(logger));
}
public bool Create(CaseBindingModel model)

View File

@ -19,8 +19,8 @@ namespace CaseAccountingBusinessLogic.BusinessLogics
public ContractLogic(ILogger<ContractLogic> logger, IContractStorage contractStorage)
{
_logger = logger;
_contractStorage = contractStorage;
_logger = logger ?? throw new ArgumentNullException(nameof(logger));
_contractStorage = contractStorage ?? throw new ArgumentNullException(nameof(logger));
}
public bool Create(ContractBindingModel model)

View File

@ -20,7 +20,7 @@ namespace CaseAccountingBusinessLogic.BusinessLogics
public DealLogic(ILogger<DealLogic> logger, IDealStorage dealStorage)
{
_logger = logger ?? throw new ArgumentNullException(nameof(logger));
_dealStorage = dealStorage ?? throw new ArgumentNullException(nameof(dealStorage));
_dealStorage = dealStorage ?? throw new ArgumentNullException(nameof(logger));
}
public bool Create(DealBindingModel model)