This commit is contained in:
skidoodle 2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions

View file

@ -0,0 +1,39 @@
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<MobileNotificationMessage>();
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();
}
}
}