public void DeleteTest() { StoreManagerController target = new StoreManagerController(); // TODO: Initialize to an appropriate value int id = 0; // TODO: Initialize to an appropriate value ActionResult expected = null; // TODO: Initialize to an appropriate value ActionResult actual; actual = target.Delete(id); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void DeleteTest() { using (TransactionScope ts = new TransactionScope()) { StoreManagerController target = new StoreManagerController(); int id = 669; ActionResult actual; actual = target.Delete(id, null); Assert.IsNotNull(actual); MusicStoreEntities storeDB = new MusicStoreEntities(); var album = storeDB.Albums.SingleOrDefault(a => a.AlbumId == id); Assert.IsNull(album); } }