コード例 #1
0
 public override void SetUp()
 {
     databaseHelper = new SQLiteDatabaseHelper();
     databaseHelper.CreateTestDatabase();
     operatorSource = new SQLiteBatchOperatorSource(new SQLiteStoreContext(databaseHelper.DatabaseFile));
     base.SetUp();
 }
コード例 #2
0
        public override void SetUp()
        {
            sqliteHelper = new SQLiteDatabaseHelper();
            sqliteHelper.CreateTestDatabase();
            SQLiteStoreContext context = new SQLiteStoreContext(sqliteHelper.DatabaseFile);

            operatorSource = new SQLiteBatchOperatorSource(context);
            base.SetUp();
        }
コード例 #3
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 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();
        }
コード例 #5
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()
        {
            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);
        }
コード例 #9
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);
        }