public void BulkDelete() { TestDbContext dbContext = new TestDbContext(); SetupData(dbContext, true); var orders = dbContext.Orders.Where(o => o.Price <= 2).ToList(); int rowsDeleted = dbContext.BulkDelete(orders); int newTotal = dbContext.Orders.Where(o => o.Price <= 2).Count(); Assert.IsTrue(orders.Count > 0, "There must be orders in database that match this condition (Price < $2)"); Assert.IsTrue(rowsDeleted == orders.Count, "The number of rows deleted must match the count of existing rows in database"); Assert.IsTrue(newTotal == 0, "Must be 0 to indicate all records were deleted"); }