OnHandled() public method

public OnHandled ( dynamic command, object result ) : void
command dynamic
result object
return void
        public void It_calls_OnProcessing_and_OnProcessed_on_same_instances_of_filters()
        {
            var collection = new FilterCollection(GetFilterInstances());
            var command    = new TestCommand();
            var result     = new object();

            collection.OnHandling(command);
            collection.OnHandled(command, result);
        }
        public void It_executes_all_filters_after_handling()
        {
            var filterOne  = new Mock <IFilter <TestCommand> >();
            var filterTwo  = new Mock <IFilter <TestCommand> >();
            var collection = new FilterCollection(new object[] { filterOne.Object, filterTwo.Object });
            var command    = new TestCommand();
            var result     = new object();

            collection.OnHandled(command, result);

            filterOne.Verify(x => x.OnHandled(command, result));
            filterTwo.Verify(x => x.OnHandled(command, result));
        }