небольшые добавления
This commit is contained in:
parent
064a82c064
commit
5362b358c1
@ -19,8 +19,8 @@ namespace CaseAccountingBusinessLogic.BusinessLogics
|
|||||||
|
|
||||||
public CaseLogic(ILogger<CaseLogic> logger, ICaseStorage caseStorage)
|
public CaseLogic(ILogger<CaseLogic> logger, ICaseStorage caseStorage)
|
||||||
{
|
{
|
||||||
_logger = logger;
|
_logger = logger ?? throw new ArgumentNullException(nameof(logger));
|
||||||
_caseStorage = caseStorage;
|
_caseStorage = caseStorage ?? throw new ArgumentNullException(nameof(logger));
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool Create(CaseBindingModel model)
|
public bool Create(CaseBindingModel model)
|
||||||
|
@ -19,8 +19,8 @@ namespace CaseAccountingBusinessLogic.BusinessLogics
|
|||||||
|
|
||||||
public ContractLogic(ILogger<ContractLogic> logger, IContractStorage contractStorage)
|
public ContractLogic(ILogger<ContractLogic> logger, IContractStorage contractStorage)
|
||||||
{
|
{
|
||||||
_logger = logger;
|
_logger = logger ?? throw new ArgumentNullException(nameof(logger));
|
||||||
_contractStorage = contractStorage;
|
_contractStorage = contractStorage ?? throw new ArgumentNullException(nameof(logger));
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool Create(ContractBindingModel model)
|
public bool Create(ContractBindingModel model)
|
||||||
|
@ -20,7 +20,7 @@ namespace CaseAccountingBusinessLogic.BusinessLogics
|
|||||||
public DealLogic(ILogger<DealLogic> logger, IDealStorage dealStorage)
|
public DealLogic(ILogger<DealLogic> logger, IDealStorage dealStorage)
|
||||||
{
|
{
|
||||||
_logger = logger ?? throw new ArgumentNullException(nameof(logger));
|
_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)
|
public bool Create(DealBindingModel model)
|
||||||
|
Loading…
Reference in New Issue
Block a user