예제 #1
0
        public void Execute_QueryHandlerResolved_CallsHandleMethod()
        {
            var queryExecutor = new QueryExecutor(t => _handler);

            queryExecutor.Execute <IQuery <object>, object>(_query);

            _handler.CallsTo(m => m.Handle(_query)).MustHaveHappened(Repeated.Exactly.Once);
        }