public void FindAll_NonMatchingExpression_EmptyReturned()
        {
            var subject = new InMemoryRepository <RepositorySubject, int>(1, 2);

            Utilities.Collections.IReadOnlyList <RepositorySubject> all = subject.FindAll(e => string.IsNullOrEmpty(e.Property));
            Assert.That(all, Is.Empty);
        }
        public void FindAll_MatchingExpression_MatchesReturned()
        {
            var subject = new InMemoryRepository <RepositorySubject, int>(1, 2, new RepositorySubject(3, null));

            Utilities.Collections.IReadOnlyList <RepositorySubject> all = subject.FindAll(e => !string.IsNullOrEmpty(e.Property));
            Assert.That(all.Count, Is.EqualTo(2));
            Assert.That(all[0].Id, Is.EqualTo(1));
            Assert.That(all[0].Property, Is.EqualTo("1"));
            Assert.That(all[1].Id, Is.EqualTo(2));
            Assert.That(all[1].Property, Is.EqualTo("2"));
        }