Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }