public async Task CreatApplication(CreateApplicationInput input)
        {
            var application = ObjectMapper.Map <Application>(input);
            var request     = await _applicationRepository.InsertAsync(application);

            var result = request;
        }
 public Mutation(IAppRegistrationService createAppService, IHttpContextAccessor contextAccessor)
 {
     FieldAsync <NonNullGraphType <ApplicationType>, Application>(
         "createApplication",
         arguments: new QueryArguments(CreateApplicationInput.BuildArgument()),
         resolve: x => createAppService.CreateApplication(x.GetArgument <CreateApplicationRequest>("input"),
                                                          contextAccessor.GetUserId())
         ).Authorize();
 }
        public void CreateApplication()
        {
            var interactor             = _container.Resolve <CreateApplicationInteractor>();
            var createApplicationInput = new CreateApplicationInput {
                Name = "test"
            };
            UserModel agent = new UserModel();
            var       createApplicationOutput = interactor.Handle(agent, createApplicationInput);

            Assert.True(createApplicationOutput.ApplicationId != Guid.Empty);
        }