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(); }
public DefaultSettingsCreator(BreedDbContext context) { _context = context; }
public HostRoleAndUserCreator(BreedDbContext context) { _context = context; }
public ImagesController(BreedDbContext context) { _context = context; }
public DefaultTenantBuilder(BreedDbContext context) { _context = context; }
public TestEditionsBuilder(BreedDbContext context) { _context = context; }
public InitialHostDbBuilder(BreedDbContext context) { _context = context; }
public DefaultLanguagesCreator(BreedDbContext context) { _context = context; }
public TestOrganizationUnitsBuilder(BreedDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }
public DefaultContractorCreator(BreedDbContext context) { _context = context; }
public DefaultBaseInfoCreator(BreedDbContext context) { _context = context; }
public TestDataBuilder(BreedDbContext context, int tenantId) { _context = context; _tenantId = tenantId; }
public BreedsController(BreedDbContext context) { _context = context; }
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; }
private void CreatePaidPayment(BreedDbContext context, SubscriptionPayment subscriptionPayment) { subscriptionPayment.SetAsPaid(); context.SubscriptionPayments.Add(subscriptionPayment); }