public ClientController(IClientInfoRepository clientInfoRepository, IMapper mapper) { _clientInfoRepository = clientInfoRepository ?? throw new ArgumentException(nameof(clientInfoRepository)); _mapper = mapper ?? throw new ArgumentException(nameof(mapper)); }
public OrderInfoController(IOrderInfoRepository orderInfoRepository, IOrderGoodsRepository orderGoodsRepository, IClientInfoRepository clientInfoRepository) { _orderInfoRepository = orderInfoRepository; _orderGoodsRepository = orderGoodsRepository; _clientInfoRepository = clientInfoRepository; }
public ConnectionManager( ILogger <ConnectionManager> logger, IDiscordSocketClient discordSocketClient, IDiscordRestClient discordRestClient, IClientInfoRepository clientInfoRepository) { _logger = logger; _discordSocketClient = discordSocketClient; _discordSocketClient.MessageReceive += OnMessageReceive; _discordRestClient = discordRestClient; _clientInfoRepository = clientInfoRepository; _heartbeatToken = CancellationToken.None; _heartbeatTimes = new ConcurrentQueue <long>(); }
public void InitializeMocksAndService() { string jsonConfigRawData = null; using (StreamReader r = new StreamReader("./MockData/config.json")) { jsonConfigRawData = r.ReadToEnd(); } _configDic = JsonConvert.DeserializeObject <IDictionary <string, string> >(jsonConfigRawData); string rawMockData = null; using (StreamReader r = new StreamReader("./MockData/mockClients.json")) { rawMockData = r.ReadToEnd(); } var clients = JsonConvert.DeserializeObject <IDictionary <string, IList <ClientInfoEntity> > >(rawMockData); _clientInfoList = clients.FirstOrDefault().Value; _clientInfoRepository = new ClientInfoInMemoryRepository(); _clientInfoRepository.Seed(_clientInfoList); _configService = new ConfigurationService(_configDic); _searchService = new SearchService(_configService); }
public void InitializeMocksAndRepo() { _clientInfoRepository = new ClientInfoInMemoryRepository(); _clientInfoRepository.Seed(produceMocks()); _comparisonService = new ComparisonService(); }
public ClientInfoService(IClientInfoRepository iClientInfoRepository, IUnitOfWork iUnitOfWork) { this._iClientInfoRepository = iClientInfoRepository; this._iUnitOfWork = iUnitOfWork; }
public ClientInfoController(IClientInfoRepository clientInfoRepository) { _clientInfoRepository = clientInfoRepository; }
public void InitializeRepository() { _clientRepo = new ClientInfoInMemoryRepository(); }
public CommandValidator(IClientInfoRepository clientInfoRepository) { _clientInfoRepository = clientInfoRepository; }
/// <summary> /// Initializes a new instance of the <see cref="ClientController"/> class. /// </summary> /// <param name="repository">The repository.</param> public ClientController(IClientInfoRepository repository) { Requires.NotNull(repository, nameof(repository)); _repository = repository; }
public ClientInfoService(IClientInfoRepository bar, IDomainObjectFactory factory) { _bar = bar; _factory = factory; }