コード例 #1
0
 private static void PrepareLicensing()
 {
     if (TestAssembly != null)
     {
         TestCounter.SetLicenseData(
             Configuration().Licenses(),
             DateTime.ParseExact(ReleaseDate, "yyyy-MM-dd", CultureInfo.InvariantCulture),
             TestAssembly.GetName().Name);
     }
 }
コード例 #2
0
        internal static Type TryFindDefaultStartupType()
        {
            EnsureTestAssembly();

            var defaultStartupType = GeneralConfiguration().StartupType() ?? $"{Environment.EnvironmentName}Startup";

            // check root of the test project
            var startup =
                TestAssembly.GetType(defaultStartupType) ??
                TestAssembly.GetType($"{TestAssembly.GetName().Name}.{defaultStartupType}");

            return(startup);
        }