Пример #1
0
        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);
        }
Пример #2
0
 public void DeleteOrderStatus(OrderStatu OrderStatus)
 {
     orderStatusManager.Delete(OrderStatus);
     orderStatusManager.Save();
 }