public void Setup(StateCollection stateCollection, InputCollection inputCollection) { foreach (string state in stateCollection.GetStates()) { var stateDictionary = new Dictionary <string, Transition>(); foreach (string input in inputCollection.GetInputs()) { stateDictionary.Add(input, null); } Transitions.Add(state, stateDictionary); } }