public TestAppFixture() { var rnd = new Random(); var dbName = string.Format(DbTestName, DateTime.Now, rnd.Next()); var contentRoot = AppStarter.GetContentPath(ProjectName); var dbFileName = Path.GetFullPath(Path.Combine(contentRoot, dbName)); var conStr = $"Data Source={dbFileName};"; _starter = new AppStarter(null, "sqlite", conStr, ProjectName); var logger = Provider.GetRequiredService <ILogger <TestAppFixture> >(); logger.LogDebug("Test started..."); }
public void Test() { var contentRoot = AppStarter.GetContentPath(TestAppFixture.ProjectName); Console.WriteLine($"Content Root: {contentRoot}"); }