public void CreateHandler_Valid_ExpectInstantiated()
        {
            MyAbstractCommandFactory factory = GivenAFactoryWithMyCommand();
            var myCommand        = new MyCommand(null);
            var myCommandHandler = factory.CreateHandler(myCommand);

            Assert.IsNotNull(myCommandHandler, "should be created, as a valid interface is specified");
            Assert.IsInstanceOfType(myCommandHandler, typeof(MyCommandHandler));
        }
        public void CreateHandler_InValid_ExpectException()
        {
            MyAbstractCommandFactory factory = GivenAFactoryWithMyCommand();

            try
            {
                var myCommand        = new MySillyCommand(null);
                var myCommandHandler = factory.CreateHandler(myCommand);
            }
            catch (ArgumentException)
            {
                return;
            }
            Assert.Fail("should not be created, as an ivalid interface is specified");
        }