Files
monorepo/LCU.API.Internal.OnlineLoanApp/Landmark.OLA.Tests/TestData/TestEmployers.cs
T
2026-03-11 11:18:25 -05:00

41 lines
1.2 KiB
C#

using System;
using System.Collections.Generic;
using Landmark.OLA.Models.Individuals;
using Landmark.OLA.Models.Individuals.Enums;
namespace Landmark.OLA.Tests.TestData
{
public class TestEmployers
{
private static Employer GetValidEmployer()
{
return new Employer
{
Name = "Test Employer",
Title = "QA",
WorkPhone = "9992245555",
Income = TestIncomes.GetValidEmploymentIncome(),
CurrentEmployer = false,
EmploymentType = EmploymentTypeOption.PartTime,
StartDate = new DateTime(2017, 10, 1),
};
}
public static IEnumerable<Object[]> GetValidTestEmployers()
{
yield return new Object[] { GetValidEmployer() };
}
public static IEnumerable<Object[]> GetInvalidTestEmployers()
{
var missingName = GetValidEmployer();
missingName.Name = null;
yield return new Object[] { missingName };
var invalidEmployerName = GetValidEmployer();
invalidEmployerName.Name+=".";
yield return new Object[] { invalidEmployerName };
}
}
}