public void TestExecuteAsync()
 {
     var processor = new MockCommandProcessor();
     var command = new MockCommand(true);
     processor.Init(Assert.IsNull);
     bool newState = processor.ExecuteAsync(1, command).ConfigureAwait(true).GetAwaiter().GetResult();
     Assert.IsFalse(newState); //new state should be false
 }
        public void TestExecuteAsync()
        {
            var processor = new MockCommandProcessor();
            var command   = new MockCommand(true);

            processor.Init(Assert.IsNull);
            bool newState = processor.ExecuteAsync(1, command).ConfigureAwait(true).GetAwaiter().GetResult();

            Assert.IsFalse(newState); //new state should be false
        }