Ejemplo n.º 1
0
        public void ClientValidate_PAZipCodeIs1106ButNoPALocality()
        {
            ClientFormViewModel vm = new ClientFormViewModel(new Client(
                                                                 )
            {
                FirstName        = "István",
                LastName         = "Kiss",
                BirthName        = "Kiss István",
                BirthPlace       = "Budapest",
                BirthDate        = DateTime.Parse("1960/01/01"),
                MothersLastName  = "Ágnes",
                MothersFirstName = "Szabó",
                SSN        = 111222333,
                HAZIPCode  = 1106,
                HALocality = "Budapest",
                HAStreet   = "Jászberényi út",
                HANumber   = "47/E",
                PAZIPCode  = 1106,
                PAStreet   = "Jászberényi út",
                PANumber   = "47/E"
            }
                                                             );
            bool test = vm.ClientValidate();

            Assert.IsFalse(test);
        }
Ejemplo n.º 2
0
        public void ClientValidate_PAZipCodeIs999()
        {
            ClientFormViewModel vm = new ClientFormViewModel(new Client(
                                                                 )
            {
                PAZIPCode = 999
            }
                                                             );
            bool test = vm.ClientValidate();

            Assert.IsFalse(test);
        }
Ejemplo n.º 3
0
        public void ClientValidate_ZipCodeIs10000()
        {
            ClientFormViewModel vm = new ClientFormViewModel(new Client(
                                                                 )
            {
                HAZIPCode = 10000
            }
                                                             );
            bool test = vm.ClientValidate();

            Assert.IsFalse(test);
        }
Ejemplo n.º 4
0
        public void ClientValidate_SSNIs1Million()
        {
            ClientFormViewModel vm = new ClientFormViewModel(new Client(
                                                                 )
            {
                SSN = 1000000000
            }
                                                             );
            bool test = vm.ClientValidate();

            Assert.IsFalse(test);
        }
Ejemplo n.º 5
0
        public void ClientValidate_WithoutName()
        {
            ClientFormViewModel vm = new ClientFormViewModel(new Client(
                                                                 )
            {
                FirstName = null
            }
                                                             );
            bool test = vm.ClientValidate();

            Assert.IsFalse(test);
        }