public GetNotificationsHandler(AutoTestContext autoTestContext) { this.autoTestContext = autoTestContext; }
public GetEditableEntrantsHandler(AutoTestContext autoTestContext) { this.autoTestContext = autoTestContext; }
public AddNotificationHandler(AutoTestContext autoTestContext, ISignalRNotifier signalRNotifier) { this.autoTestContext = autoTestContext; this.signalRNotifier = signalRNotifier; }
public SaveMarshalHandler(AutoTestContext autoTestContext) { this.autoTestContext = autoTestContext; }
public ClubRepository(AutoTestContext autoTestContext) { _autoTestContext = autoTestContext; }
public EventsRepository(AutoTestContext autoTestContext) { _autoTestContext = autoTestContext; }
public DeleteEventHandler(AutoTestContext autoTestContext) { _autoTestContext = autoTestContext; }
public DeleteMarshalHandler(AutoTestContext autoTestContext) { _autoTestContext = autoTestContext; }
public static void InitializeDbForTests(AutoTestContext db) { db.Events !.Add(new Event(22, 1, "", DateTime.Today, 10, 2, "", EventType.AutoTest, string.Empty, TimingSystem.StopWatch)); db.SaveChanges(); }
public GetEditableMarshalsHandler(AutoTestContext autoTestContext) { this.autoTestContext = autoTestContext; }
public TestRunsRepository(AutoTestContext autoTestContext) { _autoTestContext = autoTestContext; }
public IsClubAdminHandler(AutoTestContext autoTestContext) { this.autoTestContext = autoTestContext; }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, AutoTestContext autoTestContext) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseExceptionHandler("/Error"); // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. app.UseHsts(); } app.UseHttpsRedirection(); app.UseResponseCompression(); app.UseSpaStaticFileCaching(); app.UseRouting(); app.UseAuthentication().UseAuthorization(); app.UseWebMarkupMin(); app.UseSecurityHeaders( policies => policies.AddDefaultSecurityHeaders() .AddStrictTransportSecurityMaxAgeIncludeSubDomains(maxAgeInSeconds: 63072000) .RemoveServerHeader().AddContentSecurityPolicy(builder => { builder.AddDefaultSrc().Self(); var scripts = builder.AddScriptSrc().Self() .From(googleCom) .From("https://www.gstatic.com") .From(googleAnal) .WithHash256(swaggerHash) .WithHash256(swagger2Hash); if (env.IsDevelopment()) { scripts.UnsafeEval(); } builder.AddFrameSrc().Self().From(googleCom); var style = builder.AddStyleSrc().Self(); if (env.IsDevelopment()) { style.UnsafeInline(); } else { style.WithHash256(baseCssHash); } var connect = builder.AddConnectSrc().Self().From(googleCom); if (env.IsDevelopment()) { connect.From("https://localhost:*"); } builder.AddUpgradeInsecureRequests(); })); app.UseEndpoints(endpoints => { endpoints.MapHub <ResultsHub>("/resultsHub"); endpoints.MapControllerRoute( name: "default", pattern: "{controller}/{action=Index}/{id?}"); }); app.UseSwagger(); app.UseSwaggerUI(c => { //c.OAuthClientId("implicit"); c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1"); c.OAuthConfigObject.ClientId = ClientId; }); app.UseSpa(spa => { if (env.IsDevelopment()) { spa.Options.SourcePath = "ClientApp/"; spa.UseReactDevelopmentServer(npmScript: "dev"); } else { spa.Options.SourcePath = "ClientApp/build/"; } }); autoTestContext.SeedDatabase(); }
public GetProfileHandler(AutoTestContext autoTestContext) { this.autoTestContext = autoTestContext; }
public GetMarshalEventsHandler(AutoTestContext autoTestContext) { this.autoTestContext = autoTestContext; }
public AddTestRunHandler(ITestRunsRepository testRunsRepository, ISignalRNotifier signalRNotifier, AutoTestContext autoTestContext) { this.testRunsRepository = testRunsRepository; this.signalRNotifier = signalRNotifier; _autoTestContext = autoTestContext; }
public MarkPaidHandler(AutoTestContext autoTestContext) { _autoTestContext = autoTestContext; }