public static void SeedHostDb(CompareXDbContext context) { context.SuppressAutoSetTenantId = true; // Host seed new InitialHostDbBuilder(context).Create(); // Default tenant seed (in host database). new DefaultTenantBuilder(context).Create(); new TenantRoleAndUserBuilder(context, 1).Create(); }
public TestDataBuilder(CompareXDbContext context) { _context = context; }
public InitialCourseCreator(CompareXDbContext context) { _context = context ?? throw new ArgumentNullException(nameof(context)); }
public DefaultLanguagesCreator(CompareXDbContext context) { _context = context; }
public DefaultTenantBuilder(CompareXDbContext context) { _context = context; }
public TenantRoleAndUserBuilder(CompareXDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }
private static CompareX.Case.Case GetTestCase(CompareXDbContext context) { return(context.Cases.Single(e => e.Title == TestDataBuilder.TestCaseTitle)); }
public HostRoleAndUserCreator(CompareXDbContext context) { _context = context; }
public DefaultSettingsCreator(CompareXDbContext context) { _context = context; }
public DefaultEditionCreator(CompareXDbContext context) { _context = context; }
public InitialHostDbBuilder(CompareXDbContext context) { _context = context; }