Example #1
0
 private static MessageBoard PrepareMessageBoard()
 {
     var mb = new MessageBoard();
     mb.Receive<CreateCommand>(On);
     mb.Receive<DestroyCommand>(On);
     mb.Receive<OpenCommand>(On);
     mb.Receive<CloseCommand>(On);
     mb.Receive<WriteCommand>(On);
     mb.Receive<ReadCommand>(On);
     mb.Receive<SeekCommand>(On);
     mb.Receive<DirectoryCommand>(On);
     mb.Receive<InitCommand>(On);
     mb.Receive<SaveCommand>(On);
     mb.Receive<HelpCommand>(On);
     mb.Receive<ExitCommand>(On);
     return mb;
 }