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));
        }
Пример #2
0
 public override IEnumerable <string> Run(PetriNetwork petriNetwork, SprintEntity token)
 {
     throw new NotImplementedException();
 }
Пример #3
0
 public Sprint()
 {
     PetriNetwork = new PetriNetwork();
 }
 public abstract IEnumerable <string> Run(PetriNetwork petriNetwork, SprintEntity token);
Пример #5
0
 public PetriNetsFacade()
 {
     _petriNetsEvaluator = PetriNetsEvaluator.Instance;
     _petriNetwork       = new PetriNetwork();
 }