public void GetItemsByInvoice() { GetReady("api/{controller}/invoice/{id}"); var response = controller.GetByInvoice(1).ExecuteAsync(CancellationToken.None).Result; List <ItemModel> dataSet; var content = response.TryGetContentValue <List <ItemModel> >(out dataSet); Assert.AreNotEqual(0, dataSet.Count); }