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; }
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(); } }
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); }