Exemplo n.º 1
0
        public void CreateClient_ComplexContext_CreatesAClient()
        {
            var sut = new HalHttpClientFactoryWithContext <TestContext>(_mockedHalJsonParser);

            using (var client = sut.CreateClient(_complexContext))
            {
                Assert.NotNull(client);
            }
        }
Exemplo n.º 2
0
        public void CreateClient_StringContext_CreatesAClient()
        {
            var sut = new HalHttpClientFactoryWithContext <string>(_mockedHalJsonParser);

            using (var client = sut.CreateClient(_stringContext))
            {
                Assert.NotNull(client);
            }
        }