Ejemplo n.º 1
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;
 }
 public UserPlansController(IUserPlanService userPlanService, IMapper mapper)
 {
     _userPlanService = userPlanService;
     _mapper          = mapper;
 }