Example #1
0
 public void HasGetSet()
 {
     var value = new Place();
     var entity = new PlaceName { NameFor = value };
     entity.ShouldNotBeNull();
     entity.NameFor.ShouldEqual(value);
 }
Example #2
0
 public void HasGetSet()
 {
     const bool value = true;
     var entity = new PlaceName { IsPreferredTranslation = value };
     entity.ShouldNotBeNull();
     entity.IsPreferredTranslation.ShouldEqual(value);
 }
Example #3
0
 public void HasGetSet()
 {
     const string value = "text";
     var entity = new PlaceName { TranslationToHint = value };
     entity.ShouldNotBeNull();
     entity.TranslationToHint.ShouldEqual(value);
 }
Example #4
0
            public void ChangesAsciiEquivalent_ToNull_WhenSet_WithAsciiValue()
            {
                const string value  = "text";
                var          entity = new PlaceName {
                    Text = value
                };

                entity.AsciiEquivalent.ShouldBeNull();
            }
Example #5
0
            public void ChangesAsciiEquivalent_ToAscii_WhenSet_WithNonAsciiValue()
            {
                const string value  = "Español";
                var          entity = new PlaceName {
                    Text = value
                };

                entity.AsciiEquivalent.ShouldEqual("Espanol");
            }
Example #6
0
            public void HasGetSet()
            {
                var value  = new Place();
                var entity = new PlaceName {
                    NameFor = value
                };

                entity.ShouldNotBeNull();
                entity.NameFor.ShouldEqual(value);
            }
Example #7
0
            public void HasGetSet()
            {
                const string value  = "text";
                var          entity = new PlaceName {
                    TranslationToHint = value
                };

                entity.ShouldNotBeNull();
                entity.TranslationToHint.ShouldEqual(value);
            }
Example #8
0
            public void HasGetSet()
            {
                const bool value  = true;
                var        entity = new PlaceName {
                    IsPreferredTranslation = value
                };

                entity.ShouldNotBeNull();
                entity.IsPreferredTranslation.ShouldEqual(value);
            }
Example #9
0
 public void ChangesAsciiEquivalent_ToAscii_WhenSet_WithNonAsciiValue()
 {
     const string value = "Español";
     var entity = new PlaceName { Text = value };
     entity.AsciiEquivalent.ShouldEqual("Espanol");
 }
Example #10
0
 public void ChangesAsciiEquivalent_ToNull_WhenSet_WithAsciiValue()
 {
     const string value = "text";
     var entity = new PlaceName { Text = value };
     entity.AsciiEquivalent.ShouldBeNull();
 }