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); }
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); }