public void RetrieveAllShopsTest() { // Arrange. // Create the list of shop test data. List <Shop> shops = new List <Shop>(); shops.Add(new Shop() { ShopID = 100000, RoomID = 245213, Name = "Awesome Pawesome", Description = "Pet Store", Active = true }); shops.Add(new Shop() { ShopID = 100001, RoomID = 245255, Name = "Club Fun", Description = "Party Supplies", Active = true }); shops.Add(new Shop() { ShopID = 100002, RoomID = 245620, Name = "Groceries R Us", Description = "Self Explanatory", Active = true }); shops.Add(new Shop() { ShopID = 100003, RoomID = 205313, Name = "Peppers", Description = "Hot Sauce Shop in Key West", Active = true }); shops.Add(new Shop() { ShopID = 100004, RoomID = 252113, Name = "Jitters", Description = "Coffee served by Tweek", Active = true }); // Add those shops into the database. foreach (var shop in shops) { _shopManager.InsertShop(shop); } // Act. // Retrieve the shops from the database. List <Shop> retrievedShops = (List <Shop>)_shopManager.RetrieveAllShops(); // Assert. // Make sure the shops we created and added to the database were retrieved properly. CollectionAssert.AreEqual(shops, retrievedShops); }