public Domain.Conference Build(Conference item) { var conference = new Domain.Conference(item.ConferenceId, item.Name, item.ShortName, item.NumberOfTimeSlots, item.NumberOfTracks, item.AnonymousSessions); var calendarItems = calendarItemRepository.GetAll(); foreach (var calendarItem in calendarItems) { var calendarEntry = calendarEntryBuilder.Build(calendarItem); conference.AddToCalendar(calendarEntry); } return(conference); }
public bool AddDoc(string docId, string docContext) { bool contains = Docs.ContainsKey(docId); Docs.Add(docId, docContext); wordBuilder = new WordBuilder(docContext); HashSet <string> docKeywords = wordBuilder.Build(); foreach (var keyword in docKeywords) { AddKeyToMap(keyword.ToLower(), docId); } return(contains); }
public static void Release() { var targetGroup = ReleaseConfig.GetBuildTargetGroup(); switch (targetGroup) { case BuildTargetGroup.iOS: build = new iOS.iOSBuild(); break; case BuildTargetGroup.Android: build = new Android.AndroidBuild(); break; case BuildTargetGroup.Standalone: build = new Windows.WindowsBuild(); break; default: break; } if (build == null) { Debug.LogError("Invalid Build Target"); return; } if (!build.Setup()) { Debug.LogError("Build Setup Error"); return; } if (!build.PreBuild()) { Debug.LogError("Build PreBuild Error"); return; } if (!build.Build()) { Debug.LogError("Build Error"); return; } }
public void ConsumeContextTest(string context, HashSet <string> expected) { wordBuilder = new WordBuilder(context); Assert.Equal(expected, wordBuilder.Build()); }