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