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));
public InfoCarrierTestStoreFactory(SharedTestStoreProperties testStoreProperties, InfoCarrierBackendTestStoreFactory backendTestStoreFactory) { this.testStoreProperties = testStoreProperties; this.backendTestStoreFactory = backendTestStoreFactory; }