public override void SetUp()
 {
     databaseHelper = new SQLiteDatabaseHelper();
     databaseHelper.CreateTestDatabase();
     operatorSource = new SQLiteBatchOperatorSource(new SQLiteStoreContext(databaseHelper.DatabaseFile));
     base.SetUp();
 }
 public void SetUp()
 {
     helper = new SQLiteDatabaseHelper();
     helper.CreateTestDatabase();
     context   = new SQLiteStoreContext(helper.DatabaseFile);
     viewModel = new BatchOperatorViewModel(new SQLiteBatchOperatorSource(context));
 }
예제 #3
0
        public override void SetUp()
        {
            sqliteHelper = new SQLiteDatabaseHelper();
            sqliteHelper.CreateTestDatabase();
            SQLiteStoreContext context = new SQLiteStoreContext(sqliteHelper.DatabaseFile);

            operatorSource = new SQLiteBatchOperatorSource(context);
            base.SetUp();
        }
예제 #4
0
 public override void SetUp()
 {
     databaseHelper = new SQLiteDatabaseHelper();
     databaseHelper.CreateTestDatabase();
     context             = new SQLiteStoreContext(databaseHelper.DatabaseFile);
     inventorySource     = new SQLiteActiveInventorySource(context);
     operatorSource      = new SQLiteBatchOperatorSource(context);
     receivedBatchSource = new SQLiteReceivedBatchSource(context, inventorySource);
     base.SetUp();
 }
 public void SetUp()
 {
     dbHelper = new SQLiteDatabaseHelper();
     dbHelper.CreateTestDatabase();
     sqliteStore            = new SQLiteStoreContext(dbHelper.DatabaseFile);
     operatorSource         = new SQLiteBatchOperatorSource(sqliteStore);
     inventorySource        = new SQLiteActiveInventorySource(sqliteStore);
     receivedBatchSource    = new SQLiteReceivedBatchSource(sqliteStore, inventorySource);
     implementedBatchSource = new SQLiteImplementedBatchSource(sqliteStore, inventorySource);
     operatorHelper         = new BatchOperatorTestHelper(operatorSource);
     viewModel     = new MainWindowViewModel(inventorySource, receivedBatchSource, implementedBatchSource, operatorSource);
     batchOperator = operatorHelper.GetJaneDoeOperator();
 }
        public override void SetUp()
        {
            sqliteHelper = new SQLiteDatabaseHelper();
            sqliteHelper.CreateTestDatabase();
            SQLiteStoreContext context = new SQLiteStoreContext(sqliteHelper.DatabaseFile);

            inventorySource        = new SQLiteActiveInventorySource(context);
            receivedBatchSource    = new SQLiteReceivedBatchSource(context, inventorySource);
            implementedBatchSource = new SQLiteImplementedBatchSource(context, inventorySource);
            operatorSource         = new SQLiteBatchOperatorSource(context);
            viewModel = new ReceivingHistoryViewModel(receivedBatchSource, inventorySource, operatorSource, implementedBatchSource, GetReceivingManagementViewModel());
            command   = new OpenPurchaseOrderEditorCommand(viewModel);
            base.SetUp();
        }
예제 #7
0
        public override void SetUp()
        {
            sqliteHelper = new SQLiteDatabaseHelper();
            sqliteHelper.CreateTestDatabase();
            SQLiteStoreContext context = new SQLiteStoreContext(sqliteHelper.DatabaseFile);

            inventorySource        = new SQLiteActiveInventorySource(context);
            receivedBatchSource    = new SQLiteReceivedBatchSource(context, inventorySource);
            implementedBatchSource = new SQLiteImplementedBatchSource(context, inventorySource);
            operatorSource         = new SQLiteBatchOperatorSource(context);
            viewModel = new MainWindowViewModel(inventorySource, receivedBatchSource, implementedBatchSource, operatorSource);
            command   = new CommitBatchToImplementationLedgerCommand(viewModel);
            base.SetUp();
        }
        public override void SetUp()
        {
            sqliteHelper = new SQLiteDatabaseHelper();
            sqliteHelper.CreateTestDatabase();
            SQLiteStoreContext context = new SQLiteStoreContext(sqliteHelper.DatabaseFile);

            operatorSource         = new SQLiteBatchOperatorSource(context);
            inventorySource        = new SQLiteActiveInventorySource(context);
            receivedBatchSource    = new SQLiteReceivedBatchSource(context, inventorySource);
            implementedBatchSource = new SQLiteImplementedBatchSource(context, inventorySource);
            viewModel = new ImplementationInquiryViewModel(implementedBatchSource);
            command   = new ListLatestImplementedBatchesByDateCommand(viewModel);
            base.SetUp();
        }
        public override void SetUp()
        {
            validator    = new DuracolorIntermixBatchNumberValidator();
            sqliteHelper = new SQLiteDatabaseHelper();
            sqliteHelper.CreateTestDatabase();
            SQLiteStoreContext context = new SQLiteStoreContext(sqliteHelper.DatabaseFile);

            inventorySource        = new SQLiteActiveInventorySource(context);
            receivedBatchSource    = new SQLiteReceivedBatchSource(context, inventorySource);
            implementedBatchSource = new SQLiteImplementedBatchSource(context, inventorySource);
            operatorSource         = new SQLiteBatchOperatorSource(context);
            viewModel = new BatchHistoryViewModel(validator, inventorySource, receivedBatchSource, implementedBatchSource);
            command   = new DisplayBatchHistoryFromBatchNumberCommand(viewModel);
            base.SetUp();
        }
        public void SetUp()
        {
            helper = new SQLiteDatabaseHelper();
            helper.CreateTestDatabase();
            SQLiteStoreContext     context         = new SQLiteStoreContext(helper.DatabaseFile);
            IActiveInventorySource inventorySource = new SQLiteActiveInventorySource(context);

            viewModel = new ReceivingManagementViewModel(
                new DuracolorIntermixBatchNumberValidator(),
                new DuracolorIntermixColorList(),
                new SQLiteReceivedBatchSource(context, inventorySource),
                new SQLiteBatchOperatorSource(context),
                inventorySource
                );
        }
        public void SetUp()
        {
            sqliteHelper = new SQLiteDatabaseHelper();
            sqliteHelper.CreateTestDatabase();
            SQLiteStoreContext context = new SQLiteStoreContext(sqliteHelper.DatabaseFile);

            inventorySource        = new SQLiteActiveInventorySource(context);
            receivedBatchSource    = new SQLiteReceivedBatchSource(context, inventorySource);
            implementedBatchSource = new SQLiteImplementedBatchSource(context, inventorySource);
            operatorSource         = new SQLiteBatchOperatorSource(context);
            viewModel = new ReceivingHistoryViewModel(
                receivedBatchSource,
                inventorySource,
                operatorSource,
                implementedBatchSource,
                GetReceivingManagementViewModel()
                );
            command = new ChangeSearchCriteriaPanelVisibilityCommand(viewModel);
        }
예제 #12
0
        public override void SetUp()
        {
            sqliteHelper = new SQLiteDatabaseHelper();
            sqliteHelper.CreateTestDatabase();
            SQLiteStoreContext context = new SQLiteStoreContext(sqliteHelper.DatabaseFile);

            inventorySource        = new SQLiteActiveInventorySource(context);
            receivedBatchSource    = new SQLiteReceivedBatchSource(context, inventorySource);
            implementedBatchSource = new SQLiteImplementedBatchSource(context, inventorySource);
            operatorSource         = new SQLiteBatchOperatorSource(context);
            base.SetUp();

            viewModel = new ReceivedPurchaseOrderEditorViewModel(
                receivedBatchSource.GetPurchaseOrderForEditing(originalPONumber),
                new DuracolorIntermixColorList(),
                new DuracolorIntermixBatchNumberValidator(),
                operatorSource,
                inventorySource,
                receivedBatchSource,
                implementedBatchSource
                );

            command = new UpdatePurchaseOrderReceivingRecordCommand(viewModel);
        }