private void CheckSetting(StateSetting stateSetting, List <string> fromStates, List <string> toStates)
        {
            if (string.IsNullOrEmpty(stateSetting.State))
            {
                RaiseException("InvalidState");
            }

            if (stateSetting.IsStart && !fromStates.Contains(stateSetting.State))
            {
                RaiseException("InvalidSettingStartStateNotPresentInAnyRule");
            }

            if (stateSetting.IsEnd && !toStates.Contains(stateSetting.State))
            {
                RaiseException("InvalidSettingEndStateNotPresentInAnyRule");
            }
        }
 public void AddSetting(StateSetting stateSetting)
 {
     StateSettings.Add(stateSetting);
 }