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