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