Beispiel #1
0
        public void Linq_ReturnsQueryableSetOfEntities(int count)
        {
            using(var store = new Store(BuildConfiguration())) {
                OnStoreCreate(store);

                using(var steps = new Steps(store)) {
                    var people = Enumerable.Range(1, count).Select<int, Person>(CreatePerson).ToList();

                    // Given
                    steps.BeginConversation();
                    steps.AddPeopleToStore(people);

                    // When
                    steps.IssuePersonQuery();

                    // Then
                    steps.VerifyPersonQuery(people);
                }
            }
        }