protected void AssertModel(JsonJobAdModel model, int shortlistedCandidates, int newCandidates, int rejectedCandidates) { AssertJsonSuccess(model); Assert.AreEqual(newCandidates, model.JobAd.ApplicantCounts.New); Assert.AreEqual(shortlistedCandidates, model.JobAd.ApplicantCounts.ShortListed); Assert.AreEqual(rejectedCandidates, model.JobAd.ApplicantCounts.Rejected); }
private static void AssertModel(int expectedNewCount, int expectedShortlistedCount, int expectedRejectedCount, JsonJobAdModel model) { AssertJsonSuccess(model); Assert.AreEqual(expectedNewCount, model.JobAd.ApplicantCounts.New); Assert.AreEqual(expectedShortlistedCount, model.JobAd.ApplicantCounts.ShortListed); Assert.AreEqual(expectedRejectedCount, model.JobAd.ApplicantCounts.Rejected); }