public void GetByOwnerIdOnlyReturnsNotesFromSpecifiedOwner()
        {
            Guid ownerId = Guid.NewGuid();
            var mockSession = new Mock<ISession>();
            var mockQueryable = new Mock<INHibernateQueryable<Entities.Note>>();
            IList<Entities.Note> notes = new List<Entities.Note>();
            notes.Add(new Entities.Note{OwnerId = ownerId});
            notes.Add(new Entities.Note{OwnerId = Guid.NewGuid()});
            mockQueryable.Setup(x => x.GetEnumerator()).Returns(notes.GetEnumerator);
            mockSession.Setup(x => x.Linq<Entities.Note>()).Returns(mockQueryable.Object);

            var noteRepository = new NoteRepository(mockSession.Object);
            var result = noteRepository.GetByOwnerId(ownerId);

            Assert.IsNotNull(result);
            Assert.AreEqual(1, result.Count);
            Assert.AreEqual(ownerId, result[0].OwnerId);
        }