예제 #1
0
 public AdminController(FitnessDbContext db, JwtService jwtService)
 {
     this.db            = db;
     this.jwtService    = jwtService;
     this.cookieOptions = new CookieOptions()
     {
         HttpOnly = true,
         SameSite = SameSiteMode.None,
         Secure   = true
     };
 }
예제 #2
0
        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>();
        }
예제 #3
0
 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
     };
 }
예제 #4
0
        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();
        }
예제 #5
0
 public WorkoutsController(FitnessDbContext context)
 {
     _context = context;
 }
예제 #6
0
 public CoachRepository(FitnessDbContext context) : base(context)
 {
 }
예제 #7
0
 public SubscribersController(FitnessDbContext db)
 {
     this.db = db;
 }
예제 #8
0
 public ProgressController(FitnessDbContext db)
 {
     this.db = db;
 }
 public NutritionController(FitnessDbContext db)
 {
     this.db = db;
 }
 public MicronutrientsRepository()
 {
     this.db = new FitnessDbContext();
 }
예제 #11
0
 public TrainerController(FitnessDbContext context)
 {
     _context = context;
 }
예제 #12
0
 public TrainingRepository(FitnessDbContext context) : base(context)
 {
 }
예제 #13
0
 public HallRepository(FitnessDbContext context) : base(context)
 {
 }
예제 #14
0
 public FoodRepository()
 {
     this.db = new FitnessDbContext();
 }
예제 #15
0
 public TasksController(FitnessDbContext db)
 {
     this.db = db;
 }
 public TrainingProgramController(FitnessDbContext db)
 {
     this.db = db;
 }
 public ExercisesController(FitnessDbContext context)
 {
     _context = context;
 }
예제 #18
0
 public BookingController(FitnessDbContext db)
 {
     this.db = db;
 }
예제 #19
0
 public CustomerController(FitnessDbContext context)
 {
     _context = context;
 }
 public WorkoutRepository(FitnessDbContext context) : base(context)
 {
 }
예제 #21
0
        public CoachController(IRepository <Coach> coachRepository, FitnessDbContext fitnessDbContext)
        {
            _coachRepository = coachRepository;

            _fitnessDbContext = fitnessDbContext;
        }
예제 #22
0
 public DietController(FitnessDbContext context)
 {
     _context = context;
 }