Exemplo n.º 1
0
        void PayPeriodValidate_Fail_Pass_Test()
        {
            //Assign
            SalaryPackage sp = new SalaryPackage
            {
                AnnualGrossSalary = 60050,
                SuperAnnuationRate = 9
            };

            PayPeriod pp = new PayPeriod
            {
                Package = sp
            };

            PayPeriodValidator ppv = new PayPeriodValidator();

            //Act
            ValidationResult results = ppv.Validate(pp);

            //Assert
            Assert.False(results.IsValid);
        }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
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);
        }