Example #1
0
        private IEnumerable<RequiredFeatSelection> GetRequiredFeats(string feat)
        {
            var allRequiredFeats = collectionsSelector.SelectAllFrom(TableNameConstants.Set.Collection.RequiredFeats);
            var requiredFeats = new List<RequiredFeatSelection>();

            if (allRequiredFeats.ContainsKey(feat) == false)
                return requiredFeats;

            var requiredFeatsData = allRequiredFeats[feat];

            foreach (var requiredFeatData in requiredFeatsData)
            {
                var splitData = requiredFeatData.Split('/');
                var requiredFeat = new RequiredFeatSelection();
                requiredFeat.Feat = splitData[0];

                if (splitData.Length > 1)
                    requiredFeat.Focus = splitData[1];

                requiredFeats.Add(requiredFeat);
            }

            return requiredFeats;
        }
 public void Setup()
 {
     requiredFeatSelection = new RequiredFeatSelection();
     otherFeats = new List<Feat>();
 }