コード例 #1
0
        public async Task GeocodeM3NW040()
        {
            await ProvisioningTests.EnsureData();

            var result = await GeocodeHelper.GeocodeAsync("M3NW040");

            Assert.IsNotNull(result);
        }
コード例 #2
0
        public async Task SuggestM3NW0_MultipleResults()
        {
            await ProvisioningTests.EnsureData();

            var result = await GeocodeHelper.SuggestAsync("M3NW0");

            Assert.AreEqual(8, result.Count());
            Assert.IsTrue(result.All(r => r.StartsWith("M3nw0")));
        }
コード例 #3
0
        public async Task SuggestM3NW040_SingleResult()
        {
            await ProvisioningTests.EnsureData();

            var result = await GeocodeHelper.SuggestAsync("M3NW040");

            Assert.AreEqual(1, result.Count());
            Assert.AreEqual("M3nw040", result.First());
        }