public void TestMethod1() { var file = Path.Combine(Directory.GetCurrentDirectory(), "../../../../../../tasks/VSTeamServicesTaskGenerator/bin/Debug/net452/win7-x64/VSTeamServicesTaskGenerator.exe"); if (File.Exists(file)) { Console.WriteLine(TaskBuilder.BuildTask(file).ToString(Newtonsoft.Json.Formatting.Indented)); } }
private void BuildTask1() { FaultInfo faultInfo = new FaultInfo("111210", "VC50", DateTime.Now, DateTime.Now); Task newTask = new Task("100101", "Moodlight can not work when first start it", "Moodlight can not work when first start it", faultInfo, 3); AbstractInteraction newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.TicketCheck, "Dave"); newTask.AddInteraction(newInteraction); TaskBuilder.BuildTask(myWorkflowGraph, newTask, "Bob", "Dave", ProcedureStepEunm.TicketCheck.ToString()); }
public void WhenGivenATaskTypeWithServicesInConstructor_CanBuildIt() { var kernel = new StandardKernel(); kernel.Bind<IMyService>().To<TestMyService>(); var builder = new TaskBuilder(kernel); var task = builder.BuildTask<TestTaskRequiringService> (); Assert.IsNotNull (task); Assert.IsInstanceOf(typeof(TestMyService), task.Service); }
private void BuildTask5() { FaultInfo faultInfo = new FaultInfo("123656", "VC40", DateTime.Now, DateTime.Now); Task newTask = new Task("100105", "Somewords transient during scaning", "Somewords transient during scaning.", faultInfo, 3); AbstractInteraction newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.TicketCheck, "Dave"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.PreAnalysis, "Haden"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.Solve, "Isaac"); newTask.AddInteraction(newInteraction); TaskBuilder.BuildTask(myWorkflowGraph, newTask, "Clare", "Isaac", ProcedureStepEunm.Solve.ToString()); }
private void BuildTask4() { FaultInfo faultInfo = new FaultInfo("123556", "VC40", DateTime.Now, DateTime.Now); Task newTask = new Task("100104", "ECG lost message can not be cleared.", "ECG lost message can not be cleared.", faultInfo, 2); AbstractInteraction newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.TicketCheck, "Dave"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.PreAnalysis, "Haden"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.Solve, "Isaac"); newTask.AddInteraction(newInteraction); TaskBuilder.BuildTask(myWorkflowGraph, newTask, "Clare", "Isaac", ProcedureStepEunm.Solve.ToString()); }
private void BuildTask3() { FaultInfo faultInfo = new FaultInfo("123456", "VC40", DateTime.Now, DateTime.Now); Task newTask = new Task("100103", "Tilted table position line on tablet differs from ICS", "Tilted table position line on tablet differs from ICS", faultInfo, 3); AbstractInteraction newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.TicketCheck, "Dave"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.PreAnalysis, "Haden"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.Solve, "Isaac"); newTask.AddInteraction(newInteraction); TaskBuilder.BuildTask(myWorkflowGraph, newTask, "Clare", "Isaac", ProcedureStepEunm.Solve.ToString()); }
private void BuildTask2() { FaultInfo faultInfo = new FaultInfo("131456", "VC40", DateTime.Now, DateTime.Now); Task newTask = new Task("100102", "The warning message is not cleared when delete the warning range.", "The warning message is not cleared when delete the warning range.", faultInfo, 3); AbstractInteraction newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.TicketCheck, "Dave"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.PreAnalysis, "Haden"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.Solve, "Isaac"); newTask.AddInteraction(newInteraction); TaskBuilder.BuildTask(myWorkflowGraph, newTask, "Clare", "Isaac", ProcedureStepEunm.Solve.ToString()); }
private void BuildTask7() { FaultInfo faultInfo = new FaultInfo("213656", "VC50", DateTime.Now, DateTime.Now); Task newTask = new Task("100107", "Exception pops up, by selecting the table position on TouchUI during start/close patient.", "Exception pops up, by selecting the table position on TouchUI during start/close patient..", faultInfo, 3); AbstractInteraction newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.TicketCheck, "Dave"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.PreAnalysis, "Haden"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.Solve, "Isaac"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.Evaluate, "Haden"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.Regression, "Pol"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.Feedback, "Clare"); newTask.AddInteraction(newInteraction); TaskBuilder.BuildTask(myWorkflowGraph, newTask, "Clare", "Clare", ProcedureStepEunm.Feedback.ToString()); }
private void BuildTask6() { FaultInfo faultInfo = new FaultInfo("133672", "VC40", DateTime.Now, DateTime.Now); Task newTask = new Task("100106", "Wrong screen is displayed during general workflow", "Wrong screen is displayed during general workflow.", faultInfo, 1); AbstractInteraction newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.TicketCheck, "Dave"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.PreAnalysis, "Haden"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.Solve, "Jackson"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.Evaluate, "Haden"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.Regression, "Pol"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.Feedback, "Clare"); newTask.AddInteraction(newInteraction); TaskBuilder.BuildTask(myWorkflowGraph, newTask, "Clare", "Clare", ProcedureStepEunm.Feedback.ToString()); }