Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #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);
 }
Beispiel #4
0
 public abstract void Handle(Problem context,StateChangeInfo stateChangeInfo);