コード例 #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_4(string expected)
        {
            // Given, When
            var result = CommandModelSerializer.Serialize(config =>
            {
                config.AddBranch <AnimalSettings>("animal", animal =>
                {
                    animal.AddCommand <DogCommand>("dog");
                });
            });

            // Then
            result.ShouldBe(expected);
        }