public void Setup()
 {
     _testProduct = TestCommon.TestProduct1;
     TestDbContext.ClearData();
     _viewMock  = new ProductPageMock();
     _presenter = new ProductPresenter(_viewMock, TestDbContext.Instance);
 }
Example #2
0
        public void Setup()
        {
            TestDbContext.ClearData();
            _dbContext = TestDbContext.Instance;
            CreateTestData();
            _viewMock = new ProductsPageMock();

            _presenter = new ProductsPresenter(_viewMock, _dbContext);
        }
        public void Setup()
        {
            _testOrder2 = TestCommon.TestOrder2;

            TestDbContext.ClearData();

            StoreTestProducts();
            StoreTestOrder();
            _viewMock  = new OrderViewMock();
            _presenter = new OrderPresenter(_viewMock, TestDbContext.Instance);
        }
Example #4
0
 public void Setup()
 {
     _testDbContext = TestDbContext.Instance;
     _testProduct   = TestCommon.TestProduct1;
     TestDbContext.ClearData();
 }