public void when_command_data_dumped_contains_command_and_handler_mil()
            {
                sut.Visit(declarationTree.GetRoot());
                var data = sut.DumpCommandData().ToList();

                Assert.NotEmpty(data);
                Assert.True(string.Join("", data) == "Foo? -> FoomandHandler" + Environment.NewLine);
            }
Exemple #2
0
 private void DumpSyntaxData(MilSyntaxWalker treeData)
 {
     SendMessage(Environment.NewLine + "# Aggregate roots" + Environment.NewLine);
     SendMessage((treeData.AggregateRoots.Any() ? treeData.DumpAggregateRoots() : new[] { "-- none --" } as dynamic));
     SendMessage(Environment.NewLine + "# Commands" + Environment.NewLine);
     SendMessage((treeData.Commands.Any() || treeData.CommandHandlers.Any() ? treeData.DumpCommandData() : new[] { "-- none --" } as dynamic));
     SendMessage(Environment.NewLine + "# Events" + Environment.NewLine);
     SendMessage((treeData.Events.Any() || treeData.EventHandlers.Any() ? treeData.DumpEventData() : new[] { "-- none --" } as dynamic));
     SendMessage(Environment.NewLine + "# Message publications" + Environment.NewLine);
     SendMessage(treeData.PublicationCalls.Any() ? treeData.DumpPublicationData() : new[] { "-- none --" });
 }