public MeetingDecisionService (IDecisionRepository decisionRepository, ILogService logService, IApplicationSetting applicationSetting) { _decisionRepository = decisionRepository; _logService = logService; _applicationSetting = applicationSetting; }
public ApplicationDataQuery(IApplicationRepository applicationRepository, IDecisionRepository decisionRepository, IApplicantRepository applicantRepository) { this.applicationRepository = applicationRepository; this.decisionRepository = decisionRepository; this.applicantRepository = applicantRepository; Field <ApplicationType>( "application", arguments: new QueryArguments(new QueryArgument <IntGraphType> { Name = "id" }), resolve: _ => applicationRepository.Get(_.GetArgument <int>("id")) ); Field <ListGraphType <ApplicationType> >( "applications", resolve: _ => applicationRepository.All() ); Field <ListGraphType <DecisionType> >( "decisions", arguments: new QueryArguments(new QueryArgument <IntGraphType> { Name = "applicationId" }), resolve: _ => this.decisionRepository.All(_.GetArgument <int>("applicationId")), description: "The application's decisions" ); Field <ListGraphType <ApplicantType> >( "applicants", arguments: new QueryArguments(new QueryArgument <IntGraphType> { Name = "applicationId" }), resolve: _ => this.applicantRepository.All(_.GetArgument <int>("applicationId")), description: "The application's applicants" ); }
public DecisionService(IDecisionRepository decisionRepository, IDecisionTransRepository decisionTransRepository, IDecisionMultimediaRepository decisionMultimediaRepository) { Guard.NotNull(decisionRepository, nameof(decisionRepository)); Guard.NotNull(decisionTransRepository, nameof(decisionTransRepository)); Guard.NotNull(decisionMultimediaRepository, nameof(decisionMultimediaRepository)); _decisionRepository = decisionRepository; _decisionTransRepository = decisionTransRepository; _decisionMultimediaRepository = decisionMultimediaRepository; }
public ApplicationType(IDecisionRepository decisionRepository, IApplicantRepository applicantRepository) { this.decisionRepository = decisionRepository; this.applicantRepository = applicantRepository; Field(_ => _.Id); Field(_ => _.LenderCode); Field(_ => _.LoanType); Field <ListGraphType <DecisionType> >("decisions", resolve: _ => this.decisionRepository.All(_.Source.Id), description: "The application's decisions"); Field <ListGraphType <ApplicantType> >("applicants", resolve: _ => this.applicantRepository.All(_.Source.Id), description: "The application's applicants"); }
public DecisionController(IConnectionManager signalRConnectionManager, IDecisionRepository decisions) : base(signalRConnectionManager) { Decisions = decisions; }
public DecisionService(IContext context, IDecisionRepository repository) : base(context, repository) { _repository = repository; _context = context; }