public void TestPrefixedDivision() { var action = new GetPastelStatus((learnerNumber, database) => { Assert.AreEqual("UNIJOINT", database); Assert.AreEqual("A00111", learnerNumber); return UpToDateLearnerData; }); action.PastelCheck(BFN, "100111"); action.PastelCheck(BFN, "A00111"); }
public void TestUpToDateLearner() { var action = new GetPastelStatus((learnerNumber, database) => UpToDateLearnerData); var result = action.PastelCheck(BFN, "100111"); Assert.IsTrue(result.IsAllowed); }
public void TestUnprefixedDivision() { var action = new GetPastelStatus((learnerNumber, database) => { Assert.AreEqual("UCOECDNIP", database); Assert.AreEqual("ECD123", learnerNumber); return UpToDateLearnerData; }); action.PastelCheck(EcdDivision, "ECD123"); }