public void InsertLocationSuccess() { Location location = new Location { Longitude = 32.43543m, Latitude = 14.32456m, Active = true }; int oldNumberOfLocations = LocationDB.GetLocations(active).Count; LocationDB.InsertLocation(location); Assert.AreEqual(oldNumberOfLocations + 1, LocationDB.GetLocations(active).Count); }
public Location InsertLocation(Location location) { return(LocationDB.InsertLocation(location)); }