/// <summary> /// Initializes a new instance of the <see cref="CustomerLogic"/> class. /// </summary> /// <param name="redisCache">The redis cache.</param> /// <param name="localCache">The local cache.</param> /// <param name="appSettings">The application settings.</param> /// <param name="logger">The logger.</param> /// <param name="options">The options.</param> /// <param name="bpByContractAccountRepository">The bp by contract account repository.</param> /// <param name="customerRepository">The customer repository.</param> /// <param name="authenticationApi">The authentication API.</param> /// <param name="mcfClient"></param> /// <param name="addressApi"></param> /// /// <param name="requestContextAdapter"></param> public CustomerLogic( IDistributedCache redisCache, IMemoryCache localCache, IOptions <AppSettings> appSettings, ILogger <CustomerLogic> logger, ICoreOptions options, IBPByContractAccountRepository bpByContractAccountRepository, ICustomerRepository customerRepository, IAuthenticationApi authenticationApi, IMcfClient mcfClient, IAddressApi addressApi, IRequestContextAdapter requestContextAdapter) { _redisCache = redisCache ?? throw new ArgumentNullException(nameof(redisCache)); _localCache = localCache ?? throw new ArgumentNullException(nameof(localCache)); _appSettings = appSettings ?? throw new ArgumentNullException(nameof(appSettings)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _options = options ?? throw new ArgumentNullException(nameof(options)); _bpByContractAccountRepository = bpByContractAccountRepository ?? throw new ArgumentNullException(nameof(bpByContractAccountRepository)); _customerRepository = customerRepository ?? throw new ArgumentNullException(nameof(customerRepository)); _authenticationApi = authenticationApi ?? throw new ArgumentNullException(nameof(authenticationApi)); _mcfClient = mcfClient ?? throw new ArgumentNullException(nameof(mcfClient)); _addressApi = addressApi ?? throw new ArgumentNullException(nameof(addressApi)); _requestContextAdapter = requestContextAdapter ?? throw new ArgumentNullException(nameof(requestContextAdapter)); }
/// <summary> /// Initializes a new instance of the <see cref="MoveInLogic"/> class. /// </summary> /// <param name="logger">The logger.</param> /// <param name="mcfClient">The mcfClient.</param> /// <param name="addressApi">The addressApi.</param> /// <param name="accountApi"></param> /// <param name="deviceApi">The deviceApi.</param> /// <param name="customerLogic"></param> public MoveInLogic(ILogger <MoveInLogic> logger, IMcfClient mcfClient, IAddressApi addressApi, IAccountApi accountApi, IDeviceApi deviceApi, ICustomerLogic customerLogic) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _mcfClient = mcfClient ?? throw new ArgumentNullException(nameof(mcfClient)); _addressApi = addressApi ?? throw new ArgumentNullException(nameof(addressApi)); _accountApi = accountApi ?? throw new ArgumentNullException(nameof(accountApi)); _deviceApi = deviceApi ?? throw new ArgumentNullException(nameof(deviceApi)); _customerLogic = customerLogic ?? throw new ArgumentNullException(nameof(customerLogic)); }
/// <summary> /// Initializes a new instance of the <see cref="MoveOutLogic" /> class. /// </summary> /// <param name="logger">The logger.</param> /// <param name="mcfClient">The MCF client.</param> /// <param name="addressApi">The address API.</param> /// <param name="accountApi">The device API.</param> /// <param name="deviceApi">The device API.</param> /// <param name="requestContext">The request context.</param> /// <exception cref="ArgumentNullException">logger /// or /// mcfClient /// or /// addressApi /// or /// deviceApi /// or /// requestContext</exception> public MoveOutLogic( ILogger <MoveInLogic> logger, IMcfClient mcfClient, IAddressApi addressApi, IAccountApi accountApi, IDeviceApi deviceApi, IRequestContextAdapter requestContext) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _mcfClient = mcfClient ?? throw new ArgumentNullException(nameof(mcfClient)); _addressApi = addressApi ?? throw new ArgumentNullException(nameof(addressApi)); _accountApi = accountApi ?? throw new ArgumentNullException(nameof(accountApi)); _deviceApi = deviceApi ?? throw new ArgumentNullException(nameof(deviceApi)); _requestContext = requestContext ?? throw new ArgumentNullException(nameof(requestContext)); }