예제 #1
0
 public static Problem RegisterStateToTechnicalCommitteeState(Problem problem,IEnumerable<Unit> technicalCommittes)
 {
     var untiRepo = ObjectMother.GetUnitRepository();
     var stateInfo = new StateChangeInfo() { RecieverUnits = technicalCommittes.ToList() };
     problem.Request(stateInfo);
     return problem;
 }
예제 #2
0
 public static Problem BuildProblem()
 {
     var problem = new Problem();
     problem.Id = -1;
     problem.Description = "Mock New Problem";
     problem.Title = "Mock New Problem";
     problem.States.Add(BuildRegisterState());
     problem.Creator = BuildUnit();
     return problem;
 }
예제 #3
0
 public void MakeProposal(Problem selectedProblem, Proposal proposal, string subject, string content)
 {
     proposal.Creator = this;
     proposal.Subject = subject;
     proposal.Content = content;
     Proposals.Add(proposal);
     proposal.Problem = selectedProblem;
     selectedProblem.Proposals.Add(proposal);
 }
예제 #4
0
 public abstract void Handle(Problem context,StateChangeInfo stateChangeInfo);