Beispiel #1
0
        public static void SeedHostDb(VenusDbContext 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 TestOrganizationUnitsBuilder(VenusDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
 public DefaultTenantBuilder(VenusDbContext context)
 {
     _context = context;
 }
Beispiel #4
0
 public TestSubscriptionPaymentBuilder(VenusDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
 public DefaultEditionCreator(VenusDbContext context)
 {
     _context = context;
 }
Beispiel #6
0
 public InitialHostDbBuilder(VenusDbContext context)
 {
     _context = context;
 }
 public HostRoleAndUserCreator(VenusDbContext context)
 {
     _context = context;
 }
 public TestEditionsBuilder(VenusDbContext context)
 {
     _context = context;
 }
Beispiel #9
0
 public TenantRoleAndUserBuilder(VenusDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
Beispiel #10
0
 public DefaultLanguagesCreator(VenusDbContext context)
 {
     _context = context;
 }
 public TestDataBuilder(VenusDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
 public DefaultSettingsCreator(VenusDbContext context)
 {
     _context = context;
 }