public object Any(GetNorthwindCustomerOrders request)
		{
			return new GetNorthwindCustomerOrdersResponse
			{
				CustomerOrders = GetCustomerOrders(request.CustomerId)
			};			
		}
コード例 #2
0
		public void Can_GetNorthwindCustomerOrders()
		{
			var request = new GetNorthwindCustomerOrders { CustomerId = "TESTCUSTOMER" };

			SendToEachEndpoint<GetNorthwindCustomerOrdersResponse>(request, response =>
				Assert.That(response.CustomerOrders.Customer.Id, Is.EqualTo(request.CustomerId)));
		}