public void Delete_Multiple_Deletes_Multiple_Entries() { BagDML bagdml = new BagDML(); ClearDatabase(); InsertTestData(); int expected = Count() - 2; List <Bag> bags = new List <Bag> { new Bag(1, 1, DateTime.Now), new Bag(2, 1, DateTime.Now), }; bagdml.Delete_Multiple(bags); int actual = Count(); Assert.AreEqual(expected, actual); }
public void Delete_Multiple_Runs_Without_Errors() { BagDML bagdml = new BagDML(); List <Bag> bags = new List <Bag> { new Bag(0), new Bag(0) }; ArgumentException expected = null; try { bagdml.Delete_Multiple(bags); } catch (ArgumentException e) { expected = e; } Assert.IsNotNull(expected); }