public void Get_ExistingItem_WeGetAnItemThatExists() { var id = _refrigerator.AddItem("xyz"); var item = _refrigerator.GetItem(id); Assert.AreEqual("xyz", item); }
public void Get_ExistingItem_WeGetAnItemThatExists() { // notice that we don't need to manually add an item to the database here _database.Setup(x => x.GetItem(1)).Returns("xyz"); var item = _refrigerator.GetItem(1); Assert.AreEqual("xyz", item); }