Пример #1
0
        public void Instance_Implement_Interface_ICommandHandler_Of_Command()
        {
            var type = typeof(ICommandHandler <Command>);

            var handler = new AwesomeCommandHandler();

            Assert.IsAssignableFrom(type, handler);
        }
Пример #2
0
        public void Handle()
        {
            var handler = new AwesomeCommandHandler();

            var dispatcher = new Mock <ICommandDispatcher>();

            handler.Handle(new Command(dispatcher.Object));
        }