first commit
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
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 };
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user