예제 #1
0
		private void PopulateRepositoryWithItemsForQuerying(MemoryRepository<TestItem> repository)
		{
			TestItem[] items = new TestItem[3];
			items[0] = repository.CreateItem();
			items[0].StoredString = "Item 3";
			repository.SaveItem(items[0]);
			items[1] = repository.CreateItem();
			items[1].StoredString = "Item 0";
			repository.SaveItem(items[1]);
			items[2] = repository.CreateItem();
			items[2].StoredString = "Item 2";
			repository.SaveItem(items[2]);
		}
예제 #2
0
		private void PopulateRepositoryWithItemsForQuerying(MemoryRepository<TestItem> repository)
		{
			TestItem[] items = new TestItem[2];
			items[0] = repository.CreateItem();
			items[0].StoredList = PopulateListWith("Item 1", "Item 3");
			repository.SaveItem(items[0]);

			items[1] = repository.CreateItem();
			items[1].StoredList = PopulateListWith("Item 2", "Item 0");
			repository.SaveItem(items[1]);
		}