Exemplo n.º 1
0
        public void add_notification()
        {
            var            domainNotification        = new DomainNotification("Teste", "ERRO");
            INotifications domainNotificationHandler = new DomainNotificationHandler(new LoggerFactory());

            var processMethod = domainNotificationHandler.GetType().GetMethod("Process", BindingFlags.NonPublic | BindingFlags.Instance);

            _ = processMethod.Invoke(domainNotificationHandler, new object[] { domainNotification, It.IsAny <CancellationToken>() });

            Assert.True(domainNotificationHandler.HasNotifications());
        }