Beispiel #1
0
 private void OnAboutClick(CommandBarButton Ctrl, ref bool CancelDefault)
 {
     using (var command = new AboutCommand())
     {
         command.Execute();
     }
 }
Beispiel #2
0
        public async Task TestExecuteSuccess()
        {
            var message = new Message(0, "about", new ConsoleMessageChannel());

            var command = new AboutCommand(ConfigureServices());

            command.SetCancellationToken(CancellationToken.None);
            var response = await command.Execute(message);

            response.Status.Should().Be(CommandStatus.Success);
            response.Content.Should().Contain("About CyborgianStates");
            response.Content.Should().Contain("Developed by Drehtisch");
            response.Content.Should().Contain($"Github{Environment.NewLine}[CyborgianStates]");
            response.Content.Should().Contain($"Support{Environment.NewLine}via [OpenCollective]");
        }