Example #1
0
        public static void SeedHostDb(CashTestDbContext 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();
            new PlayerAndMapBuilder(context).Create();
        }
Example #2
0
 public DefaultMapsCreator(CashTestDbContext context)
 {
     _context = context;
 }
Example #3
0
 public HostRoleAndUserCreator(CashTestDbContext context)
 {
     _context = context;
 }
Example #4
0
 public InitialHostDbBuilder(CashTestDbContext context)
 {
     _context = context;
 }
Example #5
0
 public TenantRoleAndUserBuilder(CashTestDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
Example #6
0
 public DefaultPlayersCreator(CashTestDbContext context)
 {
     _context = context;
 }
Example #7
0
 public DefaultTenantBuilder(CashTestDbContext context)
 {
     _context = context;
 }
 public DefaultEditionCreator(CashTestDbContext context)
 {
     _context = context;
 }
 public DefaultLanguagesCreator(CashTestDbContext context)
 {
     _context = context;
 }
Example #10
0
 public DefaultSettingsCreator(CashTestDbContext context)
 {
     _context = context;
 }
 public PlayerAndMapBuilder(CashTestDbContext context)
 {
     _context = context;
 }