예제 #1
0
 public EnterpriseData(
     SQLiteConnection onlineStoreDb,
     NpgsqlConnection loyaltyDb,
     MySqlConnection homeDeliveryDb,
     OnlineStoreRepository onlineStoreRepository)
 {
     _onlineStoreDb         = onlineStoreDb;
     _loyaltyDb             = loyaltyDb;
     _homeDeliveryDb        = homeDeliveryDb;
     _onlineStoreRepository = onlineStoreRepository;
 }
        public Customer360Controller(
            HomeDeliveryRepository homeDeliveryRepository,
            LoyaltyRepository loyaltyRepository,
            LoyaltyCsvExportService loyaltyCsvExportService,
            LoyaltyCsvImportService loyaltyCsvImportService,
            ILogger <Customer360Controller> logger,
            EnterpriseData enterpriseData,
            OnlineStoreRepository onlineStoreRepository)
        {
            _homeDeliveryRepository  = homeDeliveryRepository;
            _loyaltyRepository       = loyaltyRepository;
            _loyaltyCsvExportService = loyaltyCsvExportService;
            _loyaltyCsvImportService = loyaltyCsvImportService;
            _logger                = logger;
            _enterpriseData        = enterpriseData;
            _onlineStoreRepository = onlineStoreRepository;

            // make sure all the appropriate tables/databases exist
            _enterpriseData.EnsureSchemas();
        }
예제 #3
0
 public OnlineStoreController(OnlineStoreRepository onlineStoreRepository)
 {
     _onlineStoreRepository = onlineStoreRepository;
 }