Ejemplo n.º 1
0
        private void AssertNotes(IEmployerContact employer, IMemberContact member, params CandidateNote[] expectedNotes)
        {
            var notes = _candidateNotesCommand.GetCandidateNotes(employer, member.Id);

            Assert.AreEqual(expectedNotes.Length, notes.Count);
            for (var index = 0; index < expectedNotes.Length; ++index)
            {
                Assert.AreEqual(expectedNotes[index].Id, notes[index].Id);
            }
        }
Ejemplo n.º 2
0
        private void AssertNote(bool expectAccess, CandidateNote expectedNote, IEmployerContact noteReader)
        {
            var note = _candidateNotesCommand.GetCandidateNote(noteReader, expectedNote.Id);

            if (expectAccess)
            {
                AssertNote(expectedNote, note);
            }
            else
            {
                Assert.IsNull(note);
            }
        }