public void TrackViaClient_GetApps_ShouldReturnListOfApps() { // Assemble List <App> apps = new List <App>() { new App("1", "Contact Management - Construction"), new App("2", "Contact Management - IT") }; Mock <IAsyncHttpClientHelper> httpClient = new Mock <IAsyncHttpClientHelper>(); TestHelper.HttpClient_SetupGetRequest(HttpStatusCode.OK, apps, httpClient); TrackViaClient client = new TrackViaClient(httpClient.Object, TestHelper.HostName_Fake, TestHelper.ApiKey_Fake); // Act List <App> appsResponse = client.getApps(); // Assert appsResponse.ShouldNotBeNull() .Count.ShouldEqual(apps.Count); for (int i = 0; i < apps.Count; i++) { appsResponse[i].ShouldNotBeNull().ShouldEqual(apps[i]); } }