コード例 #1
0
        public void Should_Generate_Correct_Model_For_Case_2(string expected)
        {
            // Given, When
            var result = CommandModelSerializer.Serialize(config =>
            {
                config.AddCommand <DogCommand>("dog");
            });

            // Then
            result.ShouldBe(expected);
        }
コード例 #2
0
        public void Should_Generate_Correct_Model_For_Case_3(string expected)
        {
            // Given, When
            var result = CommandModelSerializer.Serialize(config =>
            {
                config.AddCommand <AnimalSettings>("animal", animal =>
                {
                    animal.AddCommand <DogCommand>("dog");
                    animal.AddCommand <HorseCommand>("horse");
                });
            });

            // Then
            result.ShouldBe(expected);
        }