Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
        public void ShouldReturnSingleHistoryItem()
        {
            APIConsumer apiConsumerObject = new APIConsumer(orderHistoryServiceMock.Object);

            Assert.AreEqual(apiConsumerObject.GetCustomerOrderHistory("234").Count, 1);
        }