Esempio n. 1
0
        public void Length_1234_4()
        {
            var act = HouseNumber.Create(1234).Length;
            var exp = 4;

            Assert.AreEqual(exp, act);
        }
Esempio n. 2
0
 public void Create_Int32MinValue_ThrowsArgumentOutOfRangeException()
 {
     ExceptionAssert.CatchArgumentOutOfRangeException
         (() =>
     {
         HouseNumber.Create(Int32.MinValue);
     },
         "val",
         "Not a valid house number");
 }
Esempio n. 3
0
        private void TestAddPersonToCommunityByNameAndAddress()
        {
            Console.WriteLine("# TestAddPersonToCommunityByNameAndAddress");
            var communityPerson = PrivateCommunityClient().AddPersonToCommunity(
                NameParam.Create("Karius", "Davidsen"),
                AddressParam.Create("Úti í Bø",
                                    HouseNumber.Create(16),
                                    "Syðrugøta")
                );

            PrintCommunityPerson(communityPerson);
        }
Esempio n. 4
0
        private void TestGetPersonMediumByNameAndAddress()
        {
            Console.WriteLine("# TestGetPersonMediumByNameAndAddress");
            var person = MediumClient().GetPerson(
                NameParam.Create("Karius", "Davidsen"),
                AddressParam.Create("Úti í Bø",
                                    HouseNumber.Create(16),
                                    "Syðrugøta")
                );

            PrintPerson(person);
        }
Esempio n. 5
0
 public void IsEven_1234_IsTrue()
 {
     Assert.IsTrue(HouseNumber.Create(1234).IsEven);
 }
Esempio n. 6
0
 public void MaxValue_None_999999999()
 {
     Assert.AreEqual(HouseNumber.Create(999999999), HouseNumber.MaxValue);
 }
Esempio n. 7
0
 public void MinValue_None_1()
 {
     Assert.AreEqual(HouseNumber.Create(1), HouseNumber.MinValue);
 }