コード例 #1
0
        public void Get_Empty_Hostname_List()
        {
            var items = EmptyListDataApi.GetHostnames(ApplicationID);

            Assert.IsNotNull(items);
            Assert.IsTrue(!items.Any());
        }
コード例 #2
0
        public void Get_Non_Empty_Hostname_List()
        {
            var items = Api.GetHostnames(ApplicationID);

            Assert.IsNotNull(items);
            Assert.IsTrue(items.Count() == 1);

            var item = items.Single();

            Assert.AreEqual(item.Id, "5");
            Assert.AreEqual(item.Value, "example.org");
            Assert.AreEqual(item.Canonical, false);
            Assert.AreEqual(item.Url, "https://appharbor.com/applications/:application/hostnames/5");
        }