Example #1
0
        public static void SeedHostDb(BreedDbContext 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();
        }
Example #2
0
 public DefaultSettingsCreator(BreedDbContext context)
 {
     _context = context;
 }
 public HostRoleAndUserCreator(BreedDbContext context)
 {
     _context = context;
 }
 public ImagesController(BreedDbContext context)
 {
     _context = context;
 }
Example #5
0
 public DefaultTenantBuilder(BreedDbContext context)
 {
     _context = context;
 }
Example #6
0
 public TestEditionsBuilder(BreedDbContext context)
 {
     _context = context;
 }
Example #7
0
 public InitialHostDbBuilder(BreedDbContext context)
 {
     _context = context;
 }
Example #8
0
 public DefaultLanguagesCreator(BreedDbContext context)
 {
     _context = context;
 }
 public TestOrganizationUnitsBuilder(BreedDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
 public DefaultContractorCreator(BreedDbContext context)
 {
     _context = context;
 }
Example #11
0
 public DefaultBaseInfoCreator(BreedDbContext context)
 {
     _context = context;
 }
Example #12
0
 public TestDataBuilder(BreedDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
Example #13
0
 public BreedsController(BreedDbContext context)
 {
     _context = context;
 }
Example #14
0
 public DefaultEditionCreator(BreedDbContext context)
 {
     _context = context;
 }
 public TenantRoleAndUserBuilder(BreedDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
 public TestSubscriptionPaymentBuilder(BreedDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
Example #17
0
 private void CreatePaidPayment(BreedDbContext context, SubscriptionPayment subscriptionPayment)
 {
     subscriptionPayment.SetAsPaid();
     context.SubscriptionPayments.Add(subscriptionPayment);
 }