Пример #1
0
 protected BaseSharedDatabaseFixtureWithNotifications(IModelUpdateNotificationSender notificationSender,
                                                      string dbName) : base(new NotificationsEnabledDb(new DbContextOptionsBuilder <ApplicationDbContext>()
                                                                                                       .UseInMemoryDatabase(dbName).EnableSensitiveDataLogging()
                                                                                                       .Options, notificationSender))
 {
     NotificationsEnabledDatabase = (NotificationsEnabledDb)Database;
 }
Пример #2
0
 public NotificationsEnabledDb(DbContextOptions <ApplicationDbContext> options,
                               IModelUpdateNotificationSender notificationSender) : base(options)
 {
     AutoSendNotifications = notificationSender;
 }
Пример #3
0
 public EditableInMemoryDatabaseFixtureWithNotifications(IModelUpdateNotificationSender notificationSender,
                                                         string uniqueName) : base(notificationSender, uniqueName)
 {
 }