Esempio n. 1
0
    public Action?ParseAlternativeExecution(string[] args)
    {
        var arguments = Sanitize(args);

        if (arguments.Contains('h'))
        {
            return () =>
                   {
                       _displayMessages.Help();
                       Environment.Exit(0);
                   }
        }
        ;

        if (arguments.Contains('g'))
        {
            return () =>
                   {
                       _configService.CreateSampleConfig();
                       Environment.Exit(0);
                   }
        }
        ;

        return(null);
    }
Esempio n. 2
0
    public async Task ConfigAvailable()
    {
        // Given
        // When
        await _configService.CreateSampleConfig();

        // Then
        Assert.NotNull(_configService.Config());
    }