init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue