예제 #1
0
        public void SetUp()
        {
            clientDataAccess = MockRepository.GenerateMock <IClientDataAccess>();
            logger           = MockRepository.GenerateStub <ILogger>();

            concern = new ImportCustomerInfo(clientDataAccess, logger);
        }
예제 #2
0
        public OrderDataModel(IClientDataAccess clientDataAccess, IOrderNotyficator orderNotyficator)
        {
            _clientDataAccess = clientDataAccess;
            _orderNotyficator = orderNotyficator;

            MenuItems = new List<MenuItemQuantity>();
        }
예제 #3
0
        public OrderDataModel(IClientDataAccess clientDataAccess, IOrderNotyficator orderNotyficator)
        {
            _clientDataAccess = clientDataAccess;
            _orderNotyficator = orderNotyficator;

            MenuItems = new List <MenuItemQuantity>();
        }
예제 #4
0
 public Export820Xml(IClientDataAccess clientDataAccess, IMarketDataAccess marketDataAccess, IMarket820Export exportDataAccess, ILogger logger)
 {
     this.clientDataAccess = clientDataAccess;
     this.marketDataAccess = marketDataAccess;
     this.exportDataAccess = exportDataAccess;
     this.logger           = logger;
 }
예제 #5
0
 public DecryptFileTask(IAdminDataAccess adminDataAccess, IClientDataAccess clientDataAccess, ILogger logger, int clientId)
 {
     this.logger           = logger;
     this.adminDataAccess  = adminDataAccess;
     this.clientDataAccess = clientDataAccess;
     this.clientId         = clientId;
 }
예제 #6
0
        public void Initialize()
        {
            clientDataAccess = MockRepository.GenerateMock <IClientDataAccess>();
            logger           = MockRepository.GenerateMock <ILogger>();

            importer = new Import650Prism(clientDataAccess, logger);
        }
예제 #7
0
        public void SetUp()
        {
            clientDataAccess = MockRepository.GenerateMock <IClientDataAccess>();
            exportDataAccess = MockRepository.GenerateMock <IMarket814Export>();
            logger           = MockRepository.GenerateStub <ILogger>();

            concern = new Export814Prism(clientDataAccess, exportDataAccess, logger);
        }
예제 #8
0
 public TransmitFileTask(IAdminDataAccess adminDataAccess, IClientDataAccess clientDataAccess, IMarketFile marketDataAccess, ILogger logger, int clientId)
 {
     this.adminDataAccess  = adminDataAccess;
     this.clientDataAccess = clientDataAccess;
     this.marketDataAccess = marketDataAccess;
     this.logger           = logger;
     this.clientId         = clientId;
 }
예제 #9
0
 /// <summary>
 /// Initialise data access from connection string
 /// </summary>
 /// <param name="connstring">connection string to the database</param>
 public BaseService()
 {
     this.clientDataAccess           = new ClientDataAccess();
     this.districtDataAccess         = new DistrictDataAccess();
     this.interventionDataAccess     = new InterventionDataAccess();
     this.interventionTypeDataAccess = new InterventionTypeDataAccess();
     this.userDataAccess             = new UserDataAccess();
     this.reportDataAccess           = new ReportDataAccess();
 }
예제 #10
0
 public ErcotEncryptFileTask(IAdminDataAccess adminDataAccess, IClientDataAccess clientDataAccess, IMarketFile marketDataAccess, ILogger logger, int clientId)
     : base(clientDataAccess, marketDataAccess)
 {
     this.adminDataAccess  = adminDataAccess;
     this.clientDataAccess = clientDataAccess;
     this.marketDataAccess = marketDataAccess;
     this.logger           = logger;
     this.clientId         = clientId;
 }
예제 #11
0
 /// <summary>
 /// Initialise data access from connection string
 /// </summary>
 /// <param name="connstring">connection string to the database</param>
 public BaseService(string connstring)
 {
     this.clientDataAccess           = new ClientDataAccess(new SqlExecuter <IMSDBLayer.DataModels.Client>(connstring));
     this.districtDataAccess         = new DistrictDataAccess(new SqlExecuter <IMSDBLayer.DataModels.District>(connstring));
     this.interventionDataAccess     = new InterventionDataAccess(new SqlExecuter <IMSDBLayer.DataModels.Intervention>(connstring));
     this.interventionTypeDataAccess = new InterventionTypeDataAccess(new SqlExecuter <IMSDBLayer.DataModels.InterventionType>(connstring));
     this.userDataAccess             = new UserDataAccess(new SqlExecuter <IMSDBLayer.DataModels.User>(connstring));
     this.reportDataAccess           = new ReportDataAccess(new SqlExecuter <IMSDBLayer.DataModels.ReportRow>(connstring));
 }
예제 #12
0
        public void StartUp()
        {
            clientDataAccess = MockRepository.GenerateMock <IClientDataAccess>();
            clientDataAccess
            .Stub(x => x.IdentifyMarket(Arg <string> .Is.Anything))
            .Return(1);
            logger = MockRepository.GenerateStub <ILogger>();

            concern = new Import814Prism(clientDataAccess, logger);
        }
예제 #13
0
        public void TestInitialize()
        {
            //Upewnienie, że baza posiada najnowszy model danych
            Database.SetInitializer(new MigrateDatabaseToLatestVersion <DataAccessProvider, Configuration>());

            var dataAccessClass = new DataAccessClass();

            managerDataAccess = dataAccessClass;
            waiterDataAccess  = dataAccessClass;
            clientDataAccess  = dataAccessClass;
            dataWipe          = dataAccessClass;
        }
예제 #14
0
 public AdsController(IAdDataAccess adDataAccess, IBrandDataAccess brandDataAccess,
                      ICarBodyTypeDataAccess carBodyTypeDataAccess, ICarConditionDataAccess carConditionDataAccess,
                      IClientDataAccess clientDataAccess, IColorDataAccess colorDataAccess,
                      IFuelDataAccess fuelDataAccess, IProductionYearDataAccess productionYearDataAccess)
 {
     _adDataAccess             = adDataAccess;
     _brandDataAccess          = brandDataAccess;
     _carBodyTypeDataAccess    = carBodyTypeDataAccess;
     _carConditionDataAccess   = carConditionDataAccess;
     _clientDataAccess         = clientDataAccess;
     _colorDataAccess          = colorDataAccess;
     _fuelDataAccess           = fuelDataAccess;
     _productionYearDataAccess = productionYearDataAccess;
 }
예제 #15
0
        public void Initialize()
        {
            clientId            = 1;
            logger              = MockRepository.GenerateMock <ILogger>();
            adminDataAccess     = MockRepository.GenerateMock <IAdminDataAccess>();
            clientDataAccess    = MockRepository.GenerateMock <IClientDataAccess>();
            marketDataAccess    = MockRepository.GenerateMock <IMarketFile>();
            transmitFileContext = new TransmitFileContext
            {
                DirectoryArchive   = "archive",
                DirectoryDecrypted = "decrypted",
                DirectoryEncrypted = "encrypted",
                DirectoryException = "exception"
            };

            task = new TransmitFileTask(adminDataAccess, clientDataAccess, marketDataAccess, logger, clientId);
        }
예제 #16
0
 public ClientService(IClientDataAccess iClientsDataAccess)
 {
     this.clientsDataAccess = iClientsDataAccess;
 }
예제 #17
0
 public ClientCreateService(IClientDataAccess clientDataAccess)
 {
     ClientDataAccess = clientDataAccess;
 }
예제 #18
0
 public FormsAuthProvider(IClientDataAccess clientDataAccess)
 {
     _clientDataAccess = clientDataAccess;
 }
예제 #19
0
 public ImportCustomerInfo(IClientDataAccess clientDataAccess, ILogger logger)
 {
     this.clientDataAccess = clientDataAccess;
     this.logger           = logger;
 }
예제 #20
0
 public Export814Prism(IClientDataAccess clientDataAccess, IMarket814Export exportDataAccess, ILogger logger)
 {
     this.clientDataAccess = clientDataAccess;
     this.exportDataAccess = exportDataAccess;
     this.logger           = logger;
 }
예제 #21
0
 public FormsAuthProvider(IClientDataAccess clientDataAccess)
 {
     _clientDataAccess = clientDataAccess;
 }
예제 #22
0
파일: DAC.cs 프로젝트: kcitwm/dova
 void Init(string serviceName, string connString)
 {
     if (dacs.ContainsKey(serviceName))
     {
         dac = dacs[serviceName];
         return;
     }
     long t = DateTime.Now.Ticks;
     Log.Write("创建本地访问实例:ServiceConfigs.Services.Count:" + ServiceConfigs.Services.Count);
     if (ServiceConfigs.Services.ContainsKey(serviceName))
     {
         dac = new RemoteDAC(serviceName, connString);
         dacs[serviceName] = dac;
         Log.Write("创建远程访问实例:serviceName:" + serviceName);
         return;
     }
     Log.Write("创建本地访问实例:connString:" + connString);
     LoadScript(connString);
     ConnectionStringSettings css = Config.GetConnection(connString);
     if (css.ProviderName != "")
         _providerName = css.ProviderName;
     dac = new LocalDAC(css.ConnectionString, _providerName);
     dacs[serviceName] = dac;
     Log.Write(LogAction.Dac, className, "Init", connString, DateTime.Now.Ticks - t, "初始化DAC完毕");
 }
예제 #23
0
        public void TestInitialize()
        {
            //Upewnienie, że baza posiada najnowszy model danych
            Database.SetInitializer(new MigrateDatabaseToLatestVersion<DataAccessProvider, Configuration>());

            var dataAccessClass = new DataAccessClass();
            managerDataAccess = dataAccessClass;
            waiterDataAccess = dataAccessClass;
            clientDataAccess = dataAccessClass;
            dataWipe = dataAccessClass;
        }
예제 #24
0
 public ClientsController(IClientDataAccess clientDataAccess)
 {
     _clientDataAccess = clientDataAccess;
 }
예제 #25
0
 public AccountController(IAuthProvider auth, IClientDataAccess clientDataAccess)
 {
     _authProvider     = auth;
     _clientDataAccess = clientDataAccess;
 }
예제 #26
0
 public CreateClientService(IClientDataAccess dataAccess)
 {
     DataAccess = dataAccess ?? throw new ArgumentNullException(nameof(dataAccess));
 }
예제 #27
0
 public Export650Prism(IClientDataAccess clientDataAccess, IMarket650Export marketDataAccess, ILogger logger)
 {
     this.clientDataAccess = clientDataAccess;
     this.marketDataAccess = marketDataAccess;
     this.logger           = logger;
 }
예제 #28
0
 public DbOrderProcessor(IProcessOrderCommand alternateProcessOrderCommand, IClientDataAccess clientDataAccess)
 {
     _alternateProcessOrderCommand = alternateProcessOrderCommand;
     _clientDataAccess             = clientDataAccess;
 }
예제 #29
0
 protected AbstractErcotFileTask(IClientDataAccess clientDataAccess, IMarketFile marketFileDataAccess)
 {
     this.clientDataAccess     = clientDataAccess;
     this.marketFileDataAccess = marketFileDataAccess;
 }
예제 #30
0
 public ClientService(IClientDataAccess clientDataAccess, IdentityServerCryptography cryptography)
 {
     ClientDataAccess = clientDataAccess;
     Cryptography     = cryptography;
 }
예제 #31
0
 public Import810Prism(IClientDataAccess clientDataAccess, ILogger logger)
 {
     this.clientDataAccess = clientDataAccess;
     this.logger           = logger;
 }
예제 #32
0
 public ClientGetService(IClientDataAccess clientDataAccess)
 {
     this.ClientDataAccess = clientDataAccess;
 }