internal ConvertToDatabase(DatabaseT db) { _db = db; Seed(); _itemConverter = new ItemConverter(_db); _storeConverter = new StoreConverter(_db); ConvertItemsAndStoresToDatabase(); }
public StoreConnector(ViewModelBuilder <ViewModel> builder, StoreConverter <State, ViewModel> converter, bool distinct = false, ShouldRebuildCallback <ViewModel> shouldRebuild = null, Key key = null) : base(key) { D.assert(builder != null); D.assert(converter != null); this.distinct = distinct; this.builder = builder; this.converter = converter; this.shouldRebuild = shouldRebuild; }
public override void TestSetup() { base.TestSetup(); _category = new Category{ Name = "child", Parent = new Category{ Name = "parent", Parent = new Category{Name = "grand parent"}}}; _converter = new StoreConverter(); _actualTree = _converter.ToCategoryTree(_category); }
public _StoreListener(ViewModelBuilder <ViewModel> builder = null, StoreConverter <State, ViewModel> converter = null, Store <State> store = null, bool distinct = false, ShouldRebuildCallback <ViewModel> shouldRebuild = null, Key key = null) : base(key) { D.assert(builder != null); D.assert(converter != null); D.assert(store != null); this.store = store; this.builder = builder; this.converter = converter; this.distinct = distinct; this.shouldRebuild = shouldRebuild; }
public StoreService(StockContext context) { _context = context; converter = new StoreConverter(); }