public void Delete_DeleteOrderStatus_ReturnTrueResult() { IOrderStatusService service = new OrderStatusManager(_mockOrderStatusDal.Object); OrderStatus orderStatus = new OrderStatus { Id = 1, Name = It.IsAny <string>(), CreateDate = DateTime.Now, Active = true }; var result = service.Delete(orderStatus); Assert.IsTrue(result.Success); }
public void DeleteOrderStatus(OrderStatu OrderStatus) { orderStatusManager.Delete(OrderStatus); orderStatusManager.Save(); }