コード例 #1
0
 public static ITestStoreFactory EnsureInitialized(
     ref ITestStoreFactory inst,
     InfoCarrierBackendTestStoreFactory backendTestStoreFactory,
     Type contextType,
     Action <ModelBuilder, DbContext> onModelCreating,
     Func <DbContextOptionsBuilder, DbContextOptionsBuilder> onAddOptions = null,
     Action <DbContext, DbContext> copyDbContextParameters = null)
 => NonCapturingLazyInitializer.EnsureInitialized(
     ref inst,
     inst,
     _ => new InfoCarrierTestStoreFactory(
         new SharedTestStoreProperties
 {
     ContextType             = contextType,
     OnModelCreating         = onModelCreating,
     OnAddOptions            = onAddOptions ?? (o => o),
     CopyDbContextParameters = copyDbContextParameters,
 },
         backendTestStoreFactory));
コード例 #2
0
 public InfoCarrierTestStoreFactory(SharedTestStoreProperties testStoreProperties, InfoCarrierBackendTestStoreFactory backendTestStoreFactory)
 {
     this.testStoreProperties     = testStoreProperties;
     this.backendTestStoreFactory = backendTestStoreFactory;
 }