public void Adding_output_values_to_a_decorated_operation_updates_the_context_data(IOperation op, object output) { var sut = OperationContext.Create(op); var outputOperation = new TestOutputOperation { Output = output }; sut.AddOutput(outputOperation, op); Assert.Equal(output, sut.GetOutput <object>()); }
public void Outputs_can_be_piped_to_parent_operations(object output) { var innerOutputOperation = new TestOutputOperation { Output = output }; var outputOperation = new TestPipedOutputOperation(innerOutputOperation); var op = new FakeOperation(outputOperation); op.Execute(); Assert.Same(output, outputOperation.Output); }