예제 #1
0
 /// <summary>
 /// Constructor for assigning value to database connection.
 /// </summary>
 /// <param name="databaseConnectionFactory"></param>
 public Programs(IDatabaseConnectionFactory databaseConnectionFactory, IConfiguration configuration, IOrganisationProgram orgProgram,
                 IPhotos photos, ISharedJPOSService sharedJPOSService, IProgramTypeService programTypeService)
     : base(databaseConnectionFactory)
 {
     _databaseConnectionFactory = databaseConnectionFactory ?? throw new ArgumentNullException(nameof(databaseConnectionFactory));
     _configuration             = configuration;
     _orgProgram         = orgProgram;
     _photos             = photos;
     _sharedJPOSService  = sharedJPOSService;
     _programTypeService = programTypeService;
 }
예제 #2
0
 public MerchantTerminals(IDatabaseConnectionFactory databaseConnectionFactory, IConfiguration configuration,
                          ISharedJPOSService sharedJPOSService, IOrganisation organisation, IOrganisationProgram organisationProgram,
                          IPrograms program)
     : base(databaseConnectionFactory)
 {
     _databaseConnectionFactory = databaseConnectionFactory ?? throw new ArgumentNullException(nameof(databaseConnectionFactory));
     _configuration             = configuration;
     _sharedJPOSService         = sharedJPOSService;
     _organisation        = organisation;
     _organisationProgram = organisationProgram;
     _program             = program;
 }
예제 #3
0
 public ProgramAccountService(IDatabaseConnectionFactory databaseConnectionFactory, IConfiguration configuration, ILoggerManager logger,
                              IMapper mapper, IPlanProgramAccountLinkingService planProgramAccount, IAccountTypeService accountType, IPrograms program,
                              ISharedJPOSService sharedJPOSService)
     : base(databaseConnectionFactory)
 {
     _databaseConnectionFactory = databaseConnectionFactory ?? throw new ArgumentNullException(nameof(databaseConnectionFactory));
     _configuration             = configuration;
     _logger             = logger;
     _mapper             = mapper;
     _planProgramAccount = planProgramAccount;
     _accountType        = accountType;
     _program            = program;
     _sharedJPOSService  = sharedJPOSService;
 }
예제 #4
0
 /// <summary>
 /// Constructor for assigning value to database connection.
 /// </summary>
 /// <param name="databaseConnectionFactory"></param>
 public UserRepository(IDatabaseConnectionFactory databaseConnectionFactory, IPhotos photos, IConfiguration configuration, IUserRoleRepository userRoleRepository,
                       IMapper mapper, IAdminProgramAccessService adminProgramTypeService, IUserPlanService userPlanService, IMerchantAdminService merchantAdminService,
                       IProgramAdminService programAdminService, ISharedJPOSService sharedJPOSService)
     : base(databaseConnectionFactory)
 {
     _databaseConnectionFactory = databaseConnectionFactory ?? throw new ArgumentNullException(nameof(databaseConnectionFactory));
     _photos                  = photos;
     _configuration           = configuration;
     _userRoleRepository      = userRoleRepository;
     _mapper                  = mapper;
     _adminProgramTypeService = adminProgramTypeService;
     _userPlanService         = userPlanService;
     _merchantAdminService    = merchantAdminService;
     _programAdminService     = programAdminService;
     _sharedJPOSService       = sharedJPOSService;
 }