Esempio n. 1
0
        public void ShouldFormatUnspecifiedWageCorrectly()
        {
            var wage = new Wage
            {
                WageType = WageType.Unspecified
            };

            var actual = wage.ToText(null);

            actual.Should().Be("Unspecified");
        }
Esempio n. 2
0
        public void ShouldFormatNationalMinimumWageCorrectly()
        {
            var wage = new Wage
            {
                WageType    = WageType.NationalMinimumWage,
                WeeklyHours = 37.555m
            };

            var actual = wage.ToText(new DateTime(2018, 5, 1));

            actual.Should().Be("£8,202.01 - £15,290.89");
        }
Esempio n. 3
0
        public void ShouldFormatNationalMinimumWageForApprenticesCorrectly()
        {
            var wage = new Wage
            {
                WageType    = WageType.NationalMinimumWageForApprentices,
                WeeklyHours = 37.555m
            };

            var actual = wage.ToText(new DateTime(2018, 5, 1));

            actual.Should().Be("£7,225.58");
        }
Esempio n. 4
0
        public void ShouldFormatFixedWageCorrectly()
        {
            var wage = new Wage
            {
                WageType = WageType.FixedWage,
                FixedWageYearlyAmount = 12345678.91m
            };

            var actual = wage.ToText(null);

            actual.Should().Be("£12,345,678.91");
        }