Ejemplo n.º 1
0
 /// <summary>
 /// Add a notification within the bootstrapper that will be
 /// returned when bootstrapping.
 /// </summary>
 /// <param name="notification">Notification to add.</param>
 public void AddNotification(BootstrapperNotification notification)
 {
     if (notification == null)
     {
         throw new ArgumentNullException(nameof(notification));
     }
     _notifications.Add(notification);
 }
Ejemplo n.º 2
0
        public void When_Creating_A_New_BootstrapperNotification_With_Message_It_Should_Set_ContentType_To_CustomService()
        {
            var n = new BootstrapperNotification(BootstrapperNotificationType.Error, "Error message");

            n.ContentType.Should().Be(BootstapperNotificationContentType.CustomServiceNotification);
        }