示例#1
0
 public void ReadAllLocationsTest()
 {
     try
     {
         DbLocation      dbLocation = new DbLocation();
         List <Location> locations  = dbLocation.FindAll();
         Assert.IsTrue(locations.Count > 0);
     }
     catch (FaultException <NoLocationsInDatabaseException> )
     {
         Assert.Fail();
     }
     catch (FaultException <System.Exception> )
     {
         Assert.Fail();
     }
 }
示例#2
0
 /// <summary>
 /// gets all Locations
 /// </summary>
 /// <returns></returns>
 public List <Location> GetAllLocations()
 {
     return(_dbLocation.FindAll());
 }