public void SetUp() { clientDataAccess = MockRepository.GenerateMock <IClientDataAccess>(); logger = MockRepository.GenerateStub <ILogger>(); concern = new ImportCustomerInfo(clientDataAccess, logger); }
public OrderDataModel(IClientDataAccess clientDataAccess, IOrderNotyficator orderNotyficator) { _clientDataAccess = clientDataAccess; _orderNotyficator = orderNotyficator; MenuItems = new List<MenuItemQuantity>(); }
public OrderDataModel(IClientDataAccess clientDataAccess, IOrderNotyficator orderNotyficator) { _clientDataAccess = clientDataAccess; _orderNotyficator = orderNotyficator; MenuItems = new List <MenuItemQuantity>(); }
public Export820Xml(IClientDataAccess clientDataAccess, IMarketDataAccess marketDataAccess, IMarket820Export exportDataAccess, ILogger logger) { this.clientDataAccess = clientDataAccess; this.marketDataAccess = marketDataAccess; this.exportDataAccess = exportDataAccess; this.logger = logger; }
public DecryptFileTask(IAdminDataAccess adminDataAccess, IClientDataAccess clientDataAccess, ILogger logger, int clientId) { this.logger = logger; this.adminDataAccess = adminDataAccess; this.clientDataAccess = clientDataAccess; this.clientId = clientId; }
public void Initialize() { clientDataAccess = MockRepository.GenerateMock <IClientDataAccess>(); logger = MockRepository.GenerateMock <ILogger>(); importer = new Import650Prism(clientDataAccess, logger); }
public void SetUp() { clientDataAccess = MockRepository.GenerateMock <IClientDataAccess>(); exportDataAccess = MockRepository.GenerateMock <IMarket814Export>(); logger = MockRepository.GenerateStub <ILogger>(); concern = new Export814Prism(clientDataAccess, exportDataAccess, logger); }
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; }
/// <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(); }
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; }
/// <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)); }
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); }
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; }
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; }
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); }
public ClientService(IClientDataAccess iClientsDataAccess) { this.clientsDataAccess = iClientsDataAccess; }
public ClientCreateService(IClientDataAccess clientDataAccess) { ClientDataAccess = clientDataAccess; }
public FormsAuthProvider(IClientDataAccess clientDataAccess) { _clientDataAccess = clientDataAccess; }
public ImportCustomerInfo(IClientDataAccess clientDataAccess, ILogger logger) { this.clientDataAccess = clientDataAccess; this.logger = logger; }
public Export814Prism(IClientDataAccess clientDataAccess, IMarket814Export exportDataAccess, ILogger logger) { this.clientDataAccess = clientDataAccess; this.exportDataAccess = exportDataAccess; this.logger = logger; }
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完毕"); }
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; }
public ClientsController(IClientDataAccess clientDataAccess) { _clientDataAccess = clientDataAccess; }
public AccountController(IAuthProvider auth, IClientDataAccess clientDataAccess) { _authProvider = auth; _clientDataAccess = clientDataAccess; }
public CreateClientService(IClientDataAccess dataAccess) { DataAccess = dataAccess ?? throw new ArgumentNullException(nameof(dataAccess)); }
public Export650Prism(IClientDataAccess clientDataAccess, IMarket650Export marketDataAccess, ILogger logger) { this.clientDataAccess = clientDataAccess; this.marketDataAccess = marketDataAccess; this.logger = logger; }
public DbOrderProcessor(IProcessOrderCommand alternateProcessOrderCommand, IClientDataAccess clientDataAccess) { _alternateProcessOrderCommand = alternateProcessOrderCommand; _clientDataAccess = clientDataAccess; }
protected AbstractErcotFileTask(IClientDataAccess clientDataAccess, IMarketFile marketFileDataAccess) { this.clientDataAccess = clientDataAccess; this.marketFileDataAccess = marketFileDataAccess; }
public ClientService(IClientDataAccess clientDataAccess, IdentityServerCryptography cryptography) { ClientDataAccess = clientDataAccess; Cryptography = cryptography; }
public Import810Prism(IClientDataAccess clientDataAccess, ILogger logger) { this.clientDataAccess = clientDataAccess; this.logger = logger; }
public ClientGetService(IClientDataAccess clientDataAccess) { this.ClientDataAccess = clientDataAccess; }