Esempio n. 1
0
 public async static Task <int> Main(string[] args) =>
 await new CommandLineBuilder()
 .AddCommand(ListProcessesCommand.Create())
 .AddCommand(MonitorCommand.Create())
 .AddCommand(CreateConfigurationFileCommand.Create())
 .UseDefaults()
 .Build()
 .InvokeAsync(args);
        public void ListProcessesCommand_Verify_1()
        {
            Mock <IIrbisConnection> mock       = GetConnectionMock();
            IIrbisConnection        connection = mock.Object;
            ListProcessesCommand    command
                = new ListProcessesCommand(connection);

            Assert.IsTrue(command.Verify(false));
        }
        public void ListProcessesCommand_Construciton_1()
        {
            Mock <IIrbisConnection> mock       = GetConnectionMock();
            IIrbisConnection        connection = mock.Object;
            ListProcessesCommand    command
                = new ListProcessesCommand(connection);

            Assert.AreSame(connection, command.Connection);
        }