public void ShouldGetById() { // arrange RepositoryQuery<QueryTest> query = new RepositoryQuery<QueryTest>(m_session.Object); // act query.ById(1).Result(); // assert m_criteria.Verify(x => x.Add(It.IsAny<ICriterion>())); m_criteria.Verify(x => x.UniqueResult<QueryTest>()); }