Ejemplo n.º 1
0
        private static void RunSingleOperationManually()
        {
            // Run an operation manually.
            TestModelA testModelA = new TestModelA();
            ModelHolder<TestModelA> modelHolder = new ModelHolder<TestModelA>(testModelA);

            SetValueString setValueStringOperation = new SetValueString();

            setValueStringOperation.Execute(modelHolder);
        }
Ejemplo n.º 2
0
        private static void RunSingleOperationUsingBasicOperationRunner()
        {
            // Run an operation using the BasicOperationRunner.
            TestModelA testModelA = new TestModelA();
            ModelHolder<TestModelA> modelHolder = new ModelHolder<TestModelA>(testModelA);

            SetValueString setValueStringOperation = new SetValueString();

            BasicOperationRunner basicRunner = new BasicOperationRunner();

            IRun runResult = basicRunner.Run(setValueStringOperation, modelHolder);
        }