public void Delete() { List<OrderItemModel> orderItems = OrderItemManager.GetOrderItems(); OrderItemModel orderItem = orderItems.FirstOrDefault(u => u.Price == 321); bool result = OrderItemManager.Delete(orderItem.OrderItemID); Assert.IsTrue(result); }
// DELETE: api/OrderItem/5 public void Delete(Guid id) { OrderItemManager.Delete(id); }