public void Initialize()
 {
     _info  = new ProductInfo("desc", "path", 9999999);
     _model = new OrderModel();
     _model.AddCategory("category");
     _model.AddProduct(6, "name", _info);
     _model.UpdateProductStock(6, 0, 15);
     _presentationModel = new ReplenishmentPresentationModel(_model);
     _target            = new PrivateObject(_presentationModel);
 }
 public void Initialize()
 {
     _model = new OrderModel();
     _model.AddCategory("category");
     _model.AddProduct(6, "name", _info);
     _model.UpdateProductStock(6, 0, 15);
     _presentationModel = new ProductManagePresentationModel(_model);
     _presentationModel._presentationModelChanged += MockModelNotify;
     _presentationModel._listBoxChanged           += MockListNotify;
     _target        = new PrivateObject(_presentationModel);
     _isModelNotify = false;
     _isListNotify  = false;
 }
Exemplo n.º 3
0
 public void Initialize()
 {
     _model.AddCategory("category");
     _model.AddProduct(6, "name", _info);
     _model.UpdateProductStock(6, 0, 15);
     _presentationModel = new OrderPresentationModel(_model);
     _presentationModel._presentationModelChanged += Notify;
     _target   = new PrivateObject(_presentationModel);
     _isNotify = false;
     for (int count = 0; count < 7; count++)
     {
         _presentationModel.CreatePage();
     }
 }
Exemplo n.º 4
0
        public void Initialize()
        {
            _model = new OrderModel();
            _model._modelChanged   += MockModelChanged;
            _model._productChanged += MockProductChanged;
            _modelChangedFlag       = false;
            _productChangedFlag     = false;
            _target = new PrivateObject(_model);
            ProductInfo info = new ProductInfo("desc", "path", 10);

            _model.AddCategory("category");
            _model.AddProduct(6, "name", info);
            _model.UpdateProductStock(6, 0, 15);
        }