Exemplo n.º 1
0
 public RestApiController(
     IUserBookServices userBookServices,
     IUserServices userServices,
     IJsonServices jsonServices,
     IXmlServices xmlServices,
     ICsvServices csvServices,
     IQrCodeServices qrCodeServices,
     IBookServices bookServices)
 {
     this.userBookServices = userBookServices;
     this.userServices     = userServices;
     this.jsonServices     = jsonServices;
     this.xmlServices      = xmlServices;
     this.csvServices      = csvServices;
     this.qrCodeServices   = qrCodeServices;
     this.bookServices     = bookServices;
 }
Exemplo n.º 2
0
        public ConfigManager(string path, IXmlServices xmlServices, ILoggerService logger)
        {
            _logger = logger;
            _xmlServices = xmlServices;
            _configFilePath = path + "\\" + ConfigFileName;
            _resultsDirectory = path + "\\Results";
            _componentsDirectory = Environment.CurrentDirectory + "\\Components";

            CurrentConfig = new Configuration
            {
                DataFilePath = _configFilePath,
                FailedConnectListFile = _failedConnectListFile,
                SuccessfulConnectionListFile = _successfulConnectionListFile
            };

            if (CheckForConfigFile())
            {
                LoadConfig();
                return;
            }

            CreateNewConfigFile();
        }
Exemplo n.º 3
0
 public ValuesController(IXmlServices xmlService)
 {
     _xmlService = xmlService;
 }