Ejemplo n.º 1
0
 public void StoresByLatLongSmallRadius()
 {
     using (StoresController controller = new StoresController(new MockGeoServiceAgent(), this.UnitOfWork))
     {
         Thread.CurrentPrincipal = new GenericPrincipal(new GenericIdentity(Constants.UserName), new string[] { });
         var stores = controller.FindStoresByLatitudeAndLongitude((decimal)Constants.HomeLatitude, (decimal)Constants.HomeLongitude, 1);
         Assert.AreEqual(0, stores.Count);
     }
 }