Esempio n. 1
0
        public void can_use_custom_command_name_convention()
        {
            // arrange
            var expectedCommandName = "another command name";

            var sut = new DefaultCommandRegistry();

            sut.ChangeCommandNameConvention(new StubCommandNameConvention(expectedCommandName));

            // act
            var result = sut.Register(typeof(FooCommand));

            // assert
            Assert.Equal(expectedCommandName, result.CommandName);
        }