Пример #1
0
        static void Main(string[] args)
        {
            string mongoConnString = System.Configuration.ConfigurationManager.ConnectionStrings["MongoTkt"].ConnectionString;
            string erpConnString   = System.Configuration.ConfigurationManager.ConnectionStrings["ERP"].ConnectionString;
            //Logger logger = NLog.LogManager.GetCurrentClassLogger();
            var mongohelper = MongodbHelper.CreateConnction(mongoConnString);
            var fix         = new FixTcChildQtxBugRepository(erpConnString, _logger);

            FixTcChildQtxBugService service = new FixTcChildQtxBugService(mongohelper, fix, _logger);

            service.FixBugs();

            Console.WriteLine("finished");
            Console.ReadKey();
        }
Пример #2
0
 public FixTcChildQtxBugService(MongodbHelper mongoHelper, FixTcChildQtxBugRepository repo, Logger logger)
 {
     this._repo        = repo;
     this._mongoHelper = mongoHelper;
     this._logger      = logger;
 }