public AuthController(IAuthRepository repo, IGymRepository repoGym, IConfiguration config, IOptions <AppSettings> appSettings) { this._repo = repo; this._repoGym = repoGym; this._config = config; this._appSettings = appSettings; }
public GymAttendanceControllerTests() : base() { gymRepository = new GymRepository(DbContext); gymAttendenceRepository = new GymAttendenceRepository(DbContext); attendanceController = new GymAttendanceController(gymRepository, gymAttendenceRepository); }
public CapacityController(IGymRepository repo, IConfiguration config, IMapper mapper, IOptions <AppSettings> appSettings) { this._repo = repo; this._config = config; this._mapper = mapper; this._appSettings = appSettings; }
public GymService(IGymRepository gymRepository, ILocalizationService localizationService, IConfigurationService configurationService) { GymRepository = gymRepository; LocalizationService = localizationService; ConfigurationService = configurationService; GymsByFences = new LazyConcurrentDictionary <FenceConfiguration, int[]>(); }
public GymController(IGymRepository gr, IGymMemberRepository gm, IUserRepository user, INotificationSettingsRepository n) { gymRepository = gr; gymMemberRepository = gm; userGymMovesRepository = user; notificationSettingRepository = n; }
public GymPageController(UserManager <ApplicationUser> userManager, IGymRepository gymRepo, ICommentRepository comRepo, IUserGymsRepository userRepo) { _gymRepo = gymRepo; _comRepo = comRepo; _userRepo = userRepo; _userManager = userManager; }
public void Setup() { _rndGyms = Generate.FakeGyms(); _gymRepo = SetupGymRepo(); _unitOfWork = new Mock <IUnitOfWork>().Object; }
public GymApplicationController(IGymApplicationRepository gar, IGymRepository gr, ISupportStaffRepository ssr, IApplicationCodeRepository acr, IMailer mail) { applicationRepository = gar; gymRepository = gr; staffRepository = ssr; codeRepository = acr; mailer = mail; }
public NotificationsController(INotificationSettingsRepository notificationSettingsRep, INotificationsRepository notificationsRep, IGymRepository gymRepo, IMailer mail) { notificationSettingsRepository = notificationSettingsRep; notificationsRepository = notificationsRep; gymRepository = gymRepo; mailer = mail; }
public AdminController(SignInManager <AdminUser> signInManager, UserManager <AdminUser> userManager, IGymRepository gymRepository, IGymLocationService gymLocationService) { _signInManager = signInManager; _userManager = userManager; _gymRepository = gymRepository; _gymLocationService = gymLocationService; }
public RatingsController(IClassRepository cr, IUserRepository ur, IClassRatingRepository crr, IInstructorRatingRepository irr, IGymRepository gr) { classRepository = cr; userRepository = ur; classRatingRepository = crr; instructorRatingRepository = irr; gymRepository = gr; }
public DbInitializer(ApplicationDbContext context, UserManager <ApplicationUser> userManager, RoleManager <IdentityRole> roleManager, IAppPermissionsLookup permissions, IGymRepository gymsRepo) { this._context = context; this._userManager = userManager; this._roleManager = roleManager; this._permissions = permissions; this._gymsRepo = gymsRepo; }
public ClassesController(IUserRepository uR, IClassRepository cR, IClassRegisterRepository cRR, IGymRepository gR, IMailer mail) { userRepository = uR; classRepository = cR; registerRepository = cRR; gymRepository = gR; mailer = mail; }
public AdminController(IGymRepository repo, IConfiguration config, IMapper mapper, IOptions <AppSettings> appSettings, IOptions <PaymentSettings> paymentSettings, IHttpClientHelper httpClientHelper) { this._repo = repo; this._config = config; this._mapper = mapper; this._appSettings = appSettings; this._httpClientHelper = httpClientHelper; this._paymentSettings = paymentSettings; }
/* * Method Name: * UserController * Purpose: * This method instantiates the repositories that will be used. */ public UserController(IUserRepository repoOne, IGymMemberRepository repoTwo, IGymRepository repoThree, INotificationSettingsRepository repoFour, IPasswordResetRepository repoFive, IMailer repoSix) { userGymMovesRepository = repoOne; gymMembersRepository = repoTwo; gymRepository = repoThree; notificationSettingRepository = repoFour; resetPasswordRepository = repoFive; mailer = repoSix; }
public AdminController(IGymRepository gymRepository, IOpenHoursRepository openHoursRepository, IVacancyRepository vacancyRepository, UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IMembershipDealRepository dealRepository, IAttendanceRepository attendanceRepository) { this.gymRepository = gymRepository; this.openHoursRepository = openHoursRepository; this.vacancyRepository = vacancyRepository; this.userManager = userManager; this.signInManager = signInManager; this.dealRepository = dealRepository; this.attendanceRepository = attendanceRepository; }
public HomeController(IGymRepository gymRepository, IOpenHoursRepository openHoursRepository, IVacancyRepository vacancyRepository, IFreePassRepository freePassRepository, IWebHostEnvironment env, IMembershipDealRepository dealRepository) { this.gymRepository = gymRepository; this.openHoursRepository = openHoursRepository; this.vacancyRepository = vacancyRepository; this.freePassRepository = freePassRepository; this.env = env; this.dealRepository = dealRepository; this.gymRepository = gymRepository; }
/* * Method Name: * UserController * Purpose: * This method instantiates the repositories that will be used. */ public UserController(IUserRepository repoOne, IGymMemberRepository repoTwo, IGymRepository repoThree, INotificationSettingsRepository repoFour, IPasswordResetRepository repoFive, IMailer repoSix, IGymApplicationRepository repoSeven, IApplicationCodeRepository repoEight) { userGymMovesRepository = repoOne; gymMembersRepository = repoTwo; gymRepository = repoThree; notificationSettingRepository = repoFour; resetPasswordRepository = repoFive; mailer = repoSix; applicationRepository = repoSeven; codeRepository = repoEight; }
private bool disposedValue = false; // To detect redundant calls protected virtual void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { // TODO: dispose managed state (managed objects). gymRepository = null; } // TODO: free unmanaged resources (unmanaged objects) and override a finalizer below. // TODO: set large fields to null. disposedValue = true; } }
public GymClassesTests() : base() { IConfigurationBuilder configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddJsonFile("appsettings.json"); IConfiguration configuration = configurationBuilder.Build(); userRepository = new UserRepository(DbContext); registerRepository = new ClassRegisterRepository(DbContext); classRepository = new ClassRepository(DbContext, registerRepository); gymRepository = new GymRepository(DbContext); classAttendanceRepository = new ClassAttendanceRepository(DbContext); mailer = new Mailer(configuration); classesController = new ClassesController(userRepository, classRepository, registerRepository, gymRepository, classAttendanceRepository, mailer); }
public GymApplicationTests() : base() { IConfigurationBuilder configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddJsonFile("appsettings.json"); IConfiguration configuration = configurationBuilder.Build(); /* Setup Repositories */ applicationRepository = new GymApplicationRepository(DbContext); gymRepository = new GymRepository(DbContext); staffRepository = new SupportStaffRepository(DbContext); codeRepository = new ApplicationCodeRepository(DbContext); mailer = new Mailer(configuration); /* Setup Controllers */ gymApplicationController = new GymApplicationController(applicationRepository, gymRepository, staffRepository, codeRepository, mailer); }
public ManageController( UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IEmailSender emailSender, ILogger <ManageController> logger, UrlEncoder urlEncoder, IUserProfileRepository userProfileRepository, IHostingEnvironment hostingEnvironment, IGymRepository gymRepository) { _userManager = userManager; _signInManager = signInManager; _emailSender = emailSender; _logger = logger; _urlEncoder = urlEncoder; _userProfileRepository = userProfileRepository; _hostingEnvironment = hostingEnvironment; _gymRepository = gymRepository; }
public GymService(IGymRepository gymRepository, IUnitOfWork unitOfWork) { this.gymRepository = gymRepository; this.unitOfWork = unitOfWork; }
/// <summary> /// Default constructor /// </summary> /// <param name="gymRepository"></param> /// <param name="mapper"></param> public GymApiController(IGymRepository gymRepository, IMapper mapper) { _mapper = mapper; _gymRepository = gymRepository; }
public SearchController(IGymRepository repo, UserManager <ApplicationUser> userManager) { _gymRepo = repo; _userManager = userManager; }
public CommentController(ICommentRepository comRepo, IGymRepository gymRepo) { _comRepo = comRepo; _gymRepo = gymRepo; }
public GetAllGymsQueryHandler(IGymRepository gymRepository, IMapper mapper) { this.mapper = mapper; this.gymRepository = gymRepository; }
/// <summary> /// Default constructor /// </summary> /// <param name="gymRepository"></param> public GymController(IGymRepository gymRepository) { _gymRepository = gymRepository; }
public GymService(IGymRepository gymRepository, IAddressService addressService) { _gymRepository = gymRepository; _addressService = addressService; }
public CreateGymCommandHandler(IGymRepository gymRepository, IMapper mapper) { this.gymRepository = gymRepository; this.mapper = mapper; }