Exemplo n.º 1
0
        public ListApiResourcesCommandTest()
        {
            this._console = A.Fake <IConsole>();
            this._apiResourceRepository = A.Fake <IApiResourceRepository>();
            var listApiResourceCmd = new ListApiResourcesCommand(this._console, this._apiResourceRepository);

            this._commandLineApp = CommandLineApplicationUtils.CreateCommandLineApplication(
                CommandName, SubCommandName, listApiResourceCmd
                );
        }
Exemplo n.º 2
0
        public NewClientCommandTest()
        {
            this._console          = A.Fake <IConsole>();
            this._clientRepository = A.Fake <IClientRepository>();
            var newClientCmd = new NewClientCommand(this._console, this._clientRepository);

            this._commandLineApp = CommandLineApplicationUtils.CreateCommandLineApplication(
                CommandName, SubCommandName, newClientCmd
                );
        }
Exemplo n.º 3
0
        public NewIdentityResourceCommandTest()
        {
            this._console = A.Fake <IConsole>();
            this._identityResourceRepository = A.Fake <IIdentityResourceRepository>();
            var newIdentityResourceCmd = new NewIdentityResourceCommand(this._console, this._identityResourceRepository);

            this._commandLineApp = CommandLineApplicationUtils.CreateCommandLineApplication(
                CommandName, SubCommandName, newIdentityResourceCmd
                );
        }