Beispiel #1
0
        public void TestDeleteOrder()
        {
            OrderBusinessComponent service = new OrderBusinessComponent(this.context);

            Expect.Once.On(context).Method("DeleteOrder").With(1);
            service.DeleteOrder(1);
            mockBuilder.VerifyAllExpectationsHaveBeenMet();
        }
Beispiel #2
0
        public DeleteOrderResponse DeleteOrder(DeleteOrderRequest request)
        {
            DeleteOrderResponse    response = new DeleteOrderResponse();
            OrderBusinessComponent bc       = DependencyInjectionHelper.GetOrderBusinessComponent();

            bc.DeleteOrder(request.Id);

            return(response);
        }