23 lines
801 B
C#
23 lines
801 B
C#
using System;
|
|
using LCU.API.Internal.Operations.IncentiveApi.Services;
|
|
using LCU.API.Internal.Operations.IncentiveApiLib.Persistence;
|
|
using NUnit.Framework;
|
|
|
|
namespace Application.UnitTests.Models
|
|
{
|
|
public class PayDayTest
|
|
{
|
|
[Test]
|
|
public void PayDay_Predict_2()
|
|
{
|
|
var service = new DateTimeService();
|
|
var date = service.getNextBonusPeriod(new DateTime(2021,10,3));
|
|
Assert.AreEqual("10/15/2021", date.ToString("MM/dd/yyyy"));
|
|
date = service.getNextBonusPeriod(new DateTime(2021,10,22));
|
|
Assert.AreEqual("11/26/2021", date.ToString("MM/dd/yyyy"));
|
|
date = service.getNextBonusPeriod(new DateTime(2022,4,17));
|
|
Assert.AreEqual("05/27/2022", date.ToString("MM/dd/yyyy"));
|
|
}
|
|
}
|
|
}
|