public object Any(GetNorthwindCustomerOrders request) { return new GetNorthwindCustomerOrdersResponse { CustomerOrders = GetCustomerOrders(request.CustomerId) }; }
public void Can_GetNorthwindCustomerOrders() { var request = new GetNorthwindCustomerOrders { CustomerId = "TESTCUSTOMER" }; SendToEachEndpoint<GetNorthwindCustomerOrdersResponse>(request, response => Assert.That(response.CustomerOrders.Customer.Id, Is.EqualTo(request.CustomerId))); }