public void HandleShouldEnqueueCommands()
        {
            var command = new AsyncCommand(new Mock<CommandBase>().Object);
            _dispatcher.Handle(command);

            _queueMock.Verify(x => x.Enqueue(It.IsAny<CommandBase>()));
        }
        public void CommandPropertyShouldBeValidatedObject()
        {
            var command = new TestCommand();
            var wrapper = new AsyncCommand(command);

            ValidationContext.Ensure(wrapper).IsValid();

            Assert.IsFalse(ValidationContext.IsValid);
        }
 protected override void Handle(AsyncCommand asyncCommand)
 {
     using (Profiler.Current.Step(string.Format("Async {0}", asyncCommand.Command.GetType().Name)))
         base.Handle(asyncCommand);
 }