Esempio n. 1
0
        public Benchmarks(DataInitFixture fixture, ITestOutputHelper output)
        {
            //Initialize the output
            this._output = output;

            //Initialize DbContext in memory
            this._fixture = fixture;

            var builder =
                new ConfigurationBuilder()
                .AddJsonFile("testsettings.json")
                .AddEnvironmentVariables();

            Configuration = builder.Build();

            this._apibaseUrl = Configuration["AAD:Url"];

            //Create the all services
            _svcBenchmark      = new BenchmarkService(_fixture.Context);
            _svcAuth           = new AuthService(_fixture.Context);
            _svcMsg            = new MessageService(_fixture.Context);
            _svcPlayerResponse = new PlayerResponseService(_fixture.Context);
            _svcPractice       = new PracticeService(_fixture.Context);
            _svcQuestionnaire  = new QuestionnaireService(_fixture.Context);
            _svcSession        = new SessionService(_fixture.Context);
            _svcCognitive      = new CognitiveService(_fixture.Context);
            _svcDrill          = new DrillService(_fixture.Context);
            _svcSettings       = new SettingsService(_fixture.Context);
            _svcTeam           = new TeamService(_fixture.Context);
            _svcWorkout        = new WorkoutService(_fixture.Context);
        }
Esempio n. 2
0
        public DrillTests(DataInitFixture fixture, ITestOutputHelper output)
        {
            //Initialize the output
            this._output = output;

            //Initialize DbContext in memory
            this._fixture = fixture;

            //Create the test service
            _service = new DrillService(_fixture.Context);
        }
Esempio n. 3
0
 public DrillController(TPPContext context) : base(context)
 {
     _service = new DrillService(context);
 }