public static void SeedHostDb(tmssDbContext 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(); }
private void CreatePaidPayment(tmssDbContext context, SubscriptionPayment subscriptionPayment) { subscriptionPayment.SetAsPaid(); context.SubscriptionPayments.Add(subscriptionPayment); }
public DefaultTenantBuilder(tmssDbContext context) { _context = context; }
public DefaultEditionCreator(tmssDbContext context) { _context = context; }
public HostRoleAndUserCreator(tmssDbContext context) { _context = context; }
public TestDataBuilder(tmssDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }
public DefaultSettingsCreator(tmssDbContext context) { _context = context; }
public InitialHostDbBuilder(tmssDbContext context) { _context = context; }
public TestOrganizationUnitsBuilder(tmssDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }
public DefaultLanguagesCreator(tmssDbContext context) { _context = context; }
public TestEditionsBuilder(tmssDbContext context) { _context = context; }
public TenantRoleAndUserBuilder(tmssDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }
public TestSubscriptionPaymentBuilder(tmssDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }