Exemplo n.º 1
0
            public void ReturnsTrue_WhenBothLatitudeAndLongitude_AreNotNull()
            {
                var entity = new Coordinates(1, 1);

                entity.ShouldNotBeNull();
                entity.HasValue.ShouldBeTrue();
            }
Exemplo n.º 2
0
            public void ReturnsFalse_WhenLongitude_IsNull()
            {
                var entity = new Coordinates(1, null);

                entity.ShouldNotBeNull();
                entity.HasValue.ShouldBeFalse();
            }
Exemplo n.º 3
0
        protected internal EstablishmentLocation()
        {
            Center = new Coordinates(null, null);
            BoundingBox = new BoundingBox(null, null, null, null);

            // ReSharper disable DoNotCallOverridableMethodsInConstructor
            Addresses = new Collection<EstablishmentAddress>();
            Places = new Collection<Place>();
            // ReSharper restore DoNotCallOverridableMethodsInConstructor
        }
Exemplo n.º 4
0
        protected internal GeoNamesToponym()
        {
            Center = new Coordinates(null, null);

            // ReSharper disable DoNotCallOverridableMethodsInConstructor
            Children = new Collection<GeoNamesToponym>();
            Ancestors = new Collection<GeoNamesToponymNode>();
            Offspring = new Collection<GeoNamesToponymNode>();
            AlternateNames = new Collection<GeoNamesAlternateName>();
            // ReSharper restore DoNotCallOverridableMethodsInConstructor
        }
Exemplo n.º 5
0
        protected internal Place()
        {
            Center = new Coordinates(null, null);
            BoundingBox = new BoundingBox(null, null, null, null);

            // ReSharper disable DoNotCallOverridableMethodsInConstructor
            Names = new Collection<PlaceName>();
            Children = new Collection<Place>();
            Ancestors = new Collection<PlaceNode>();
            Offspring = new Collection<PlaceNode>();
            // ReSharper restore DoNotCallOverridableMethodsInConstructor
        }
Exemplo n.º 6
0
        protected internal GeoPlanetPlace()
        {
            Center = new Coordinates(null, null);
            BoundingBox = new BoundingBox(null, null, null, null);
            Country = new GeoPlanetAdmin();
            Admin1 = new GeoPlanetAdmin();
            Admin2 = new GeoPlanetAdmin();
            Admin3 = new GeoPlanetAdmin();
            Locality1 = new GeoPlanetLocality();
            Locality2 = new GeoPlanetLocality();

            // ReSharper disable DoNotCallOverridableMethodsInConstructor
            Children = new Collection<GeoPlanetPlace>();
            Ancestors = new Collection<GeoPlanetPlaceNode>();
            Offspring = new Collection<GeoPlanetPlaceNode>();
            BelongTos = new Collection<GeoPlanetPlaceBelongTo>();
            // ReSharper restore DoNotCallOverridableMethodsInConstructor
        }
Exemplo n.º 7
0
 public void HasGetSet()
 {
     var value = new Coordinates(null, null);
     var entity = new Place { Center = value };
     entity.ShouldNotBeNull();
     entity.Center.ShouldEqual(value);
 }