public void Test7() { CellPosition cp = ReadLinkHelper.GetCellPosition("C4F8"); Assert.AreEqual(cp.colStart, 2); Assert.AreEqual(cp.colEnd, 5); Assert.AreEqual(cp.rowStart, 3); Assert.AreEqual(cp.rowEnd, 7); }
public void Test6() { CellPosition cp = ReadLinkHelper.GetCellPosition(",B"); Assert.AreEqual(cp.colStart, 0); Assert.AreEqual(cp.colEnd, 1); Assert.AreEqual(cp.rowStart, 0); Assert.AreEqual(cp.rowEnd, -1); }
// GET: api/Location/5 public async Task <string> Get(int id) { // NOTE: The following few lines are temporary so that I can test the // get with the following parameters Dictionary <string, string> parameters = new Dictionary <string, string>() { { "location", "45.4868580,-122.6371730" } , { "key", "AIzaSyDWia1aT60nJIwxDje1yU4T0ICahRK8B7A" } , { "radius", "50000" } , { "keyword", "chinese" } }; var value = await ReadLinkHelper.ReadNearbyRestaurants(parameters); return(value.ToString()); }