public async Task <deleteOrder> BuildDeleteOrderRequest(string sessionId, WorkOrder workOrder) { var deleteOrder = new deleteOrder { deleteOrder1 = new xmbDeleteOrder { sessionId = sessionId, theOrder = await CreateOrder(workOrder) } }; return(deleteOrder); }
private void VerifyDeleteOrder(deleteOrder deleteOrder, WorkOrder workOrder, IList <ScheduleOfRatesModel> sorCodes) { deleteOrder.deleteOrder1.sessionId.Should().Be(_sessionId); ValidateOrder(workOrder, deleteOrder.deleteOrder1.theOrder, _locationAlerts, _personAlerts); ValidateBookings(workOrder, sorCodes, deleteOrder.deleteOrder1.theOrder.theBookingCodes); }