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