public async Task GetByExampleTest_should_retrieve_arrayAsync() { var dictionary = new Dictionary <string, JArray> { [ResourceName] = _data }; var configuration = Mock.Of <IApiConfiguration>(cfg => cfg.Url == Address); var subject = new GetByExampleTest(_resource, dictionary, configuration, tokenHandler); var result = await subject.PerformTest(); Assert.IsTrue(result); }
public void GetByExampleTest_should_retrieve_array() { var dictionary = new Dictionary <string, JArray> { [ResourceName] = _data }; var subject = new GetByExampleTest(_resource, dictionary, _configuration, tokenHandler); var result = subject.PerformTest().Result; Assert.IsTrue(result); }