private void InitFlow() { _flow = new Flow <SquareState>(SquareState.Init); _flow.AddState(SquareState.Init, SquareState.Sited); _flow.AddState(SquareState.Sited, SquareState.Left); _flow.AddState(SquareState.Sited, SquareState.Ready); _flow.AddState(SquareState.Ready, SquareState.Started); _flow.AddState(SquareState.Started, SquareState.Stoped); }
public void AddingStatesWithSameIdsAddsOnce(Flow flow, Guid id) { var screenOne = new State(id, "State 1"); var screenTwo = new State(id, "State 2"); flow.AddState(screenOne); flow.AddState(screenTwo); var graph = flow.ToGraph(); Assert.Equal(1, graph.Vertices.Count()); }