public CategoryMock(BattleScribeXml.CategoryMock xml) : base(xml) { _categoryLink = new IdLink <ICategory>( XmlBackend.CategoryGuid, newGuid => XmlBackend.CategoryGuid = newGuid, () => XmlBackend.CategoryId); _selectionsNode = new SelectionNode(() => XmlBackend.Selections, this) { Controller = XmlBackend.Controller }; }
public Catalogue(BattleScribeXml.Catalogue xml) : base(xml) { _gameSystemLink = new IdLink <IGameSystem>( XmlBackend.GameSystemGuid, newGuid => { XmlBackend.GameSystemGuid = newGuid; }, () => XmlBackend.GameSystemId); _entries = new RootEntryNode(() => XmlBackend.Entries, this) { Controller = XmlBackend.Controller }; _entryLinks = new RootLinkNode(() => XmlBackend.Links.EntryLinks, this) { Controller = XmlBackend.Controller }; _ruleLinks = new RuleLinkNode(() => XmlBackend.Links.RuleLinks, this) { Controller = XmlBackend.Controller }; _rules = new RuleNode(() => XmlBackend.Rules, this) { Controller = XmlBackend.Controller }; _sharedEntries = new EntryNode(() => XmlBackend.SharedEntries, this) { Controller = XmlBackend.Controller }; _sharedGroups = new GroupNode(() => XmlBackend.SharedEntryGroups, this) { Controller = XmlBackend.Controller }; _sharedProfiles = new ProfileNode(() => XmlBackend.SharedProfiles, this) { Controller = XmlBackend.Controller }; _sharedRules = new RuleNode(() => XmlBackend.SharedRules, this) { Controller = XmlBackend.Controller }; }