Ejemplo n.º 1
0
 internal ConvertToDatabase(DatabaseT db)
 {
     _db = db;
     Seed();
     _itemConverter  = new ItemConverter(_db);
     _storeConverter = new StoreConverter(_db);
     ConvertItemsAndStoresToDatabase();
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
 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;
 }
Ejemplo n.º 5
0
 public StoreService(StockContext context)
 {
     _context  = context;
     converter = new StoreConverter();
 }