Exemple #1
0
        public async Task<bool> DealServerTest()
        {
            var refinement = new QueryRefineModel()
            {
                Ranking = "sort",
                Resultsperbiz = 1,
            };
            var dealList = await DealServer.GetNearByDeals(new DealServerQueryModel()
            {
                Count = 5,
                Latitude = 12.930137,
                Longitude = 77.587733,
                Refinement = refinement
            });

            Assert.IsTrue(dealList != null && dealList.Count > 0);
            return true;
        }
Exemple #2
0
        static void Main(string[] args)
        {
            var refinement = new QueryRefineModel()
            {
                Ranking = "sort",
                Resultsperbiz = 1,
            };

            Task.Run(() =>
            {
                var dealList = DealServer.GetNearByDeals(new DealServerQueryModel()
                {
                    Count = 5,
                    Latitude = 12.930137,
                    Longitude = 77.587733,
                    Refinement = refinement
                });
            }).Wait();

            //Console.ReadLine();
        }