Esempio n. 1
0
 protected override void CustomTestSetup(IUmbracoBuilder builder)
 {
     NotificationHandler.PublishedContent = notification => { };
     builder.Services.AddUnique <IServerMessenger, ScopedRepositoryTests.LocalServerMessenger>();
     builder.AddCoreNotifications();
     builder.AddNotificationHandler <ContentPublishedNotification, NotificationHandler>();
     builder.Services.AddUnique <IUmbracoContextAccessor, TestUmbracoContextAccessor>();
     builder.Services.AddUnique(MockHttpContextAccessor.Object);
     builder.AddNuCache();
 }