Exemple #1
0
        public void CreateUrl()
        {
            var sc = new BooliNET.AreaSearchCondition();
            sc.Latitude = "-20.7";
            sc.Longitude = "40.9";

            Console.WriteLine(sc.CreateUrl());

            Assert.That(sc.CreateUrl() == "limit=3&lat=-20.7&lng=40.9");
        }
Exemple #2
0
        public void CreateUrl()
        {
            var sc = new BooliNET.AreaSearchCondition();

            sc.Latitude  = "-20.7";
            sc.Longitude = "40.9";

            Console.WriteLine(sc.CreateUrl());

            Assert.That(sc.CreateUrl() == "limit=3&lat=-20.7&lng=40.9");
        }
Exemple #3
0
        public void SearchConditionClear()
        {
            var sc = new BooliNET.AreaSearchCondition();
            sc.Latitude = "20.7";
            sc.Longitude = "-40.9";
            sc.CreateUrl();
            sc.ClearSearch();

            sc.Q = "Nacka";
            sc.Limit = 20;

            Console.WriteLine(sc.CreateUrl());

            Assert.That(sc.CreateUrl() == "limit=20&q=Nacka");
        }
Exemple #4
0
        public void SearchConditionClear()
        {
            var sc = new BooliNET.AreaSearchCondition();

            sc.Latitude  = "20.7";
            sc.Longitude = "-40.9";
            sc.CreateUrl();
            sc.ClearSearch();

            sc.Q     = "Nacka";
            sc.Limit = 20;

            Console.WriteLine(sc.CreateUrl());

            Assert.That(sc.CreateUrl() == "limit=20&q=Nacka");
        }