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;
 }
Example #5
0
 public HostRoleAndUserCreator(PALMASoftDbContext context)
 {
     _context = context;
 }
 public InitialHostDbBuilder(PALMASoftDbContext context)
 {
     _context = context;
 }
 public TestEditionsBuilder(PALMASoftDbContext context)
 {
     _context = context;
 }
Example #8
0
 public DefaultLanguagesCreator(PALMASoftDbContext context)
 {
     _context = context;
 }
Example #9
0
 public DefaultTenantBuilder(PALMASoftDbContext context)
 {
     _context = context;
 }
 public TestDataBuilder(PALMASoftDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
Example #11
0
 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;
 }