private static void TestGetBasketDetails(BasketServiceApi basketService) { Console.WriteLine(); Console.WriteLine(" ========================================================== "); Console.WriteLine(" Test: Basket service getting basket details "); Console.WriteLine(" ========================================================== "); var basketDetails = basketService.GetBasketDetails("5924228"); if (basketDetails != null) { Console.WriteLine(JsonConvert.SerializeObject(basketDetails, Formatting.Indented)); } }
public void GetBasketDetails_Successful() { var reference = configuration["Basket:TestBasketReference"]; var result = service.GetBasketDetails(reference); Assert.NotNull(result); Assert.AreEqual(reference, result.Reference); Assert.NotNull(result.Checksum); Assert.NotNull(result.ChannelId); }