Esempio 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;
 }
Esempio 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();
        }
Esempio n. 3
0
 public ValuesController(IXmlServices xmlService)
 {
     _xmlService = xmlService;
 }