/// <summary> /// Constructor /// </summary> /// <param name="environment">Web host environment</param> public HomeController(IWebHostEnvironment environment, TestArchive archive) { if (!Directory.Exists($"{environment.WebRootPath}/Temp)")) { Directory.CreateDirectory($"{environment.WebRootPath}/Temp"); } this.environment = environment; this.archive = archive; currentState = new CurrentStateModel(environment); }
/// <summary> /// Constructor. /// </summary> /// <param name="testArchive">Test history database access object.</param> /// <param name="environment">Current environment.</param> public HomeController(TestArchive testArchive, IWebHostEnvironment environment) { this.testArchive = testArchive; this.environment = environment; currentState = new CurrentStateModel(environment); }