Beispiel #1
0
        static void Main(string[] args)
        {
            CreateLogger();
            _log.Info("Logger Started");
            if (args.Length < 2)
            {
                _log.Error("A user name and password is required");
                return;
            }

            string fogBugzEmail = args[0];
            string fogBugzPassword = args[1];
            string sendToUsers = "*****@*****.**"; //Use this variable to send to just one user for testing instead of the users identified in the case.

            var caseRepository = new CaseRepository(fogBugzEmail, fogBugzPassword, _log );

            new CaseProcessor(_log).ProcessCases(caseRepository.GetResolvedCases(), sendToUsers);
            new CaseProcessor(_log).ProcessCases(caseRepository.GetClosedCases(), sendToUsers);

            Console.WriteLine("done.");
            Console.ReadLine();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            CreateLogger();
            _log.Info("Logger Started");
            if (args.Length < 2)
            {
                _log.Error("A user name and password is required");
                return;
            }

            string fogBugzEmail    = args[0];
            string fogBugzPassword = args[1];
            string sendToUsers     = "*****@*****.**"; //Use this variable to send to just one user for testing instead of the users identified in the case.

            var caseRepository = new CaseRepository(fogBugzEmail, fogBugzPassword, _log);

            new CaseProcessor(_log).ProcessCases(caseRepository.GetResolvedCases(), sendToUsers);
            new CaseProcessor(_log).ProcessCases(caseRepository.GetClosedCases(), sendToUsers);

            Console.WriteLine("done.");
            Console.ReadLine();
        }