Ejemplo n.º 1
0
        public void ListPages_WhenProvidedCredentials_ReturnsPages(WireDataFormat format)
        {
            //arrange
            var client = TestContext.CreateClientValidCredentials(format);
            var pageClient = new PageApi(client.HttpChannel);

            //act
            var result = pageClient.ListAll();

            //assert
            Assert.That(result.Count, Is.GreaterThan(0));
        }
Ejemplo n.º 2
0
        public void ListPages_WhenProvidedCredentials_ReturnsPages(WireDataFormat format)
        {
            var client = TestContext.CreateClientValidCredentials(format, "*****@*****.**", "123456");
			var pageClient = new PageApi(client.HttpChannel);

            var pageData = pageClient.ListAll();

            Assert.That(pageData.Count, Is.GreaterThan(0));
        }