public void Add_NewItemEmptyDatabase_OneIsReturned()
        {
            _database.Setup(x => x.AddItem("xyz")).Returns(1);
            var id = _refrigerator.AddItem("xyz");

            Assert.AreEqual(id, 1);
        }
Beispiel #2
0
        public void Add_NewItemEmptyDatabase_OneIsReturned()
        {
            var id = _refrigerator.AddItem("xyz");

            Assert.AreEqual(id, 1);
        }