public void MinorDefectWithoutNewMajorDefect_MoveToInProgress_ShouldBePossible() { //Arrange State newState = new New(); var defect = new Defect(newState) { Priority = PriorityEnum.Minor }; var petriNetwork = new PetriNetwork(); petriNetwork.Entities.Add(defect); var sprint = new Sprint() { PetriNetwork = petriNetwork }; //Act sprint.MoveDefectTo(defect, new InProgress()); //Assert defect.State.ShouldBeOfType(typeof(InProgress)); }
public override IEnumerable <string> Run(PetriNetwork petriNetwork, SprintEntity token) { throw new NotImplementedException(); }
public Sprint() { PetriNetwork = new PetriNetwork(); }
public abstract IEnumerable <string> Run(PetriNetwork petriNetwork, SprintEntity token);
public PetriNetsFacade() { _petriNetsEvaluator = PetriNetsEvaluator.Instance; _petriNetwork = new PetriNetwork(); }