public void NotCorrectBirthNumberMod()
        {
            ContactDTO NotValidContactDTO2 = new ContactDTO
            {
                Name         = "Jan",
                Surname      = "Novak",
                Address      = "",
                BirthNumber  = 7054251236, //mod 11 = 10 (not 0)
                PhoneNumbers = new int?[] { 222222222 }
            };

            Assert.IsFalse(ContactValidator.ValidateContact(NotValidContactDTO2, 5));
        }
        public void NotCorrectBirthNumberShort()
        {
            ContactDTO NotValidContactDTO3 = new ContactDTO
            {
                Name         = "Jan",
                Surname      = "Novak",
                Address      = "",
                BirthNumber  = 11,
                PhoneNumbers = new int?[] { 222222222 }
            };

            Assert.IsFalse(ContactValidator.ValidateContact(NotValidContactDTO3, 5));
        }
        public void NotCorrectSurnameMissing()
        {
            ContactDTO NotValidContactDTO1 = new ContactDTO
            {
                Name         = "Jan",
                Surname      = "",
                Address      = "",
                BirthNumber  = 7054251237,
                PhoneNumbers = new int?[] { 222222222 }
            };

            Assert.IsFalse(ContactValidator.ValidateContact(NotValidContactDTO1, 5));
        }
        public void CorrectAllButSurnameEmpty()
        {
            ContactDTO ValidContactDTO3 = new ContactDTO
            {
                Name         = "",
                Surname      = "Novak",
                Address      = "",
                BirthNumber  = null,
                PhoneNumbers = new int?[] { }
            };

            Assert.IsTrue(ContactValidator.ValidateContact(ValidContactDTO3, 5));
        }
        public void CorrectEmptyValues()
        {
            ContactDTO ValidContactDTO2 = new ContactDTO
            {
                Name         = "",
                Surname      = "Novak",
                Address      = "Doma na dvorku 35",
                BirthNumber  = 7054251237,
                PhoneNumbers = new int?[] { }
            };

            Assert.IsTrue(ContactValidator.ValidateContact(ValidContactDTO2, 5));
        }
        public void NotCorrectPhoneShort()
        {
            ContactDTO NotValidContactDTO4 = new ContactDTO
            {
                Name         = "Jan",
                Surname      = "Novak",
                Address      = "",
                BirthNumber  = 7054251237,
                PhoneNumbers = new int?[] { 6 }
            };

            Assert.IsFalse(ContactValidator.ValidateContact(NotValidContactDTO4, 5));
        }
        public void CorrectComplete()
        {
            ContactDTO ValidContactDTO1 = new ContactDTO
            {
                Name         = "Jan",
                Surname      = "Novak",
                Address      = "Doma na dvorku 35",
                BirthNumber  = 7054251237,
                PhoneNumbers = new int?[] { 222222222, 222222222 }
            };

            Assert.IsTrue(ContactValidator.ValidateContact(ValidContactDTO1, 5));
        }