public async void DepthAsync_should_success(string jsonString, string currencyPair) { //arrange var response = TestHelper.CreateJsonResponse(jsonString); var obj = new PublicApi(TestHelper.CreateApiClientWithMockHttpAccessor(response)); //act var actual = await obj.DepthAsync(currencyPair); //assert Assert.NotNull(actual); Assert.IsAssignableFrom <DepthResponse>(actual); }