Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 private void CreatePaidPayment(tmssDbContext context, SubscriptionPayment subscriptionPayment)
 {
     subscriptionPayment.SetAsPaid();
     context.SubscriptionPayments.Add(subscriptionPayment);
 }
 public DefaultTenantBuilder(tmssDbContext context)
 {
     _context = context;
 }
Esempio n. 4
0
 public DefaultEditionCreator(tmssDbContext context)
 {
     _context = context;
 }
 public HostRoleAndUserCreator(tmssDbContext context)
 {
     _context = context;
 }
Esempio n. 6
0
 public TestDataBuilder(tmssDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
 public DefaultSettingsCreator(tmssDbContext context)
 {
     _context = context;
 }
 public InitialHostDbBuilder(tmssDbContext context)
 {
     _context = context;
 }
Esempio n. 9
0
 public TestOrganizationUnitsBuilder(tmssDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
Esempio n. 10
0
 public DefaultLanguagesCreator(tmssDbContext context)
 {
     _context = context;
 }
Esempio n. 11
0
 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;
 }