/// <summary> /// A method that demonstrate invalid API parameters, which will return the NullArgumentException /// </summary> public void CallApiWithException() { APIConsumer apiConsumerObject = new APIConsumer(orderHistoryServiceMock.Object); apiConsumerObject.GetCustomerOrderHistory(null); }
public void ShouldReturnSingleHistoryItem() { APIConsumer apiConsumerObject = new APIConsumer(orderHistoryServiceMock.Object); Assert.AreEqual(apiConsumerObject.GetCustomerOrderHistory("234").Count, 1); }