public AdminController(FitnessDbContext db, JwtService jwtService) { this.db = db; this.jwtService = jwtService; this.cookieOptions = new CookieOptions() { HttpOnly = true, SameSite = SameSiteMode.None, Secure = true }; }
public CoachControllerTest() { var webHostBuilder = new WebHostBuilder().ConfigureAppConfiguration(builder => builder .AddJsonFile("appsettings.json")) .UseStartup <Startup>(); var server = new TestServer(webHostBuilder); _client = server.CreateClient(); _context = server.Services.GetService <FitnessDbContext>(); }
public RegistrationController(FitnessDbContext db, JwtService jwtService, IHubContext <ChatHub> context) { this.db = db; this.jwtService = jwtService; this.context = context; this.cookieOptions = new CookieOptions() { HttpOnly = true, SameSite = SameSiteMode.None, Secure = true }; }
public BaseApiTest() { var webHostBuilder = new WebHostBuilder() .UseSetting("DbConnectionString", @"Data Source=DESKTOP-A4P69B9\\SQLEXPRESS;Initial Catalog=FitnessDb;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False") .UseStartup <Startup>(); var server = new TestServer(webHostBuilder); _context = server.Services.GetService <FitnessDbContext>(); _client = server.CreateClient(); }
public WorkoutsController(FitnessDbContext context) { _context = context; }
public CoachRepository(FitnessDbContext context) : base(context) { }
public SubscribersController(FitnessDbContext db) { this.db = db; }
public ProgressController(FitnessDbContext db) { this.db = db; }
public NutritionController(FitnessDbContext db) { this.db = db; }
public MicronutrientsRepository() { this.db = new FitnessDbContext(); }
public TrainerController(FitnessDbContext context) { _context = context; }
public TrainingRepository(FitnessDbContext context) : base(context) { }
public HallRepository(FitnessDbContext context) : base(context) { }
public FoodRepository() { this.db = new FitnessDbContext(); }
public TasksController(FitnessDbContext db) { this.db = db; }
public TrainingProgramController(FitnessDbContext db) { this.db = db; }
public ExercisesController(FitnessDbContext context) { _context = context; }
public BookingController(FitnessDbContext db) { this.db = db; }
public CustomerController(FitnessDbContext context) { _context = context; }
public WorkoutRepository(FitnessDbContext context) : base(context) { }
public CoachController(IRepository <Coach> coachRepository, FitnessDbContext fitnessDbContext) { _coachRepository = coachRepository; _fitnessDbContext = fitnessDbContext; }
public DietController(FitnessDbContext context) { _context = context; }