Exemplo n.º 1
0
        public async Task <JsonResult> GetTestSyncAll(int id)
        {
            logger.Info("GetTest STARTED");
            ExecuteTfs syncAll = new ExecuteTfs(UnitOfWork);
            var        res     = await syncAll.Execute(2, id, "60i");

            return(Json(res, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 2
0
        public async Task ExecuteTestMethod()
        {
            using (var unitOfWork = new UnitOfWork())
            {
                ExecuteTfs syncAll = new ExecuteTfs(unitOfWork);

                ProxyResponse res = await syncAll.Execute(2, 275, null);

                Assert.AreEqual(res.Result, "ok");
            }
        }
Exemplo n.º 3
0
        public async Task <JsonResult> Execute(JiraProxyRequest jiraRequest)
        {
            logger.Info("TFS SyncAll STARTED");

            ExecuteTfs executer = new ExecuteTfs(UnitOfWork);
            int        issueId  = 0;

            if (jiraRequest.EpicKey != null)
            {
                issueId = int.Parse(jiraRequest.EpicKey);
            }
            string projectId = "";

            if (jiraRequest.ProjectId != null)
            {
                projectId = jiraRequest.ProjectId;
            }
            var executeResult = await executer.Execute((int)jiraRequest.SystemId, issueId, projectId);

            return(Json(executeResult, JsonRequestBehavior.AllowGet));
        }