Beispiel #1
0
        void SalaryPackageValidate_Fail_Pass_Test()
        {
            //Assign
            SalaryPackage sp = new SalaryPackage
            {
                AnnualGrossSalary = 60050
            };

            SalaryPackageValidator spv = new SalaryPackageValidator();

            //Act
            ValidationResult results = spv.Validate(sp);

            //Assert
            Assert.False(results.IsValid);
        }
Beispiel #2
0
        void SalaryPackageValidate_Pass_Test()
        {
            //Assign
            SalaryPackage sp = new SalaryPackage
            {
                AnnualGrossSalary = 60050,
                SuperAnnuationRate = 9
            };

            SalaryPackageValidator spv = new SalaryPackageValidator();

            //Act
            ValidationResult results   = spv.Validate(sp);

            //Assert
            Assert.True(results.IsValid);
        }