using System.Collections.Generic; using Kreta.Core.MessageBroker.Contract.MobileNotification; using Kreta.Core.MessageBroker.Contract.MobileNotification.Enum; using Kreta.MessageBroker.Client.MobileNotification; using NUnit.Framework; namespace Kreta.MessageBroker.Tests.IntegrationTests { [TestFixture] public class MobileNotificationMessageClientTests { [Test] public void SendStudentMobileNotificationMessageValid() { for (int i = 1; i <= 1200; i++) { MobileNotificationMessageHelper.PostStudentNotification("biatorbagyi__", 1, MobileNotificationMessageType.Absence, i, $"Absence test {i}"); } } [Test] public void SendStudentMobileNotificationMessagesValid() { var messages = new List(); for (int i = 1; i <= 1200; i++) { messages.Add(MobileNotificationMessageHelper.CreateMessage("biatorbagyi__", 1, MobileNotificationMessageType.Absence, i, $"Absence test {i}")); } MobileNotificationMessageHelper.PostStudentNotification(messages.ToArray()); } static MobileNotificationMessageClientTests() { log4net.Config.XmlConfigurator.Configure(); } } }