Esempio n. 1
0
        public void TestGetNumberForPrefixedCollege()
        {
            var action = new GetLastLearnerNumber(d => LastLearnerNumber);
            var result = action.NewLearnerNumberFor(PrefixedDivision);

            Assert.AreEqual("A00111", result);
        }
Esempio n. 2
0
        public void TestGetNumberForNonPrefixedCollege()
        {
            var action = new GetLastLearnerNumber(d => LastLearnerNumber);

            var expected = (LastLearnerNumber + 1).ToString(CultureInfo.InvariantCulture);

            Assert.AreEqual(expected, action.NewLearnerNumberFor(EcdDivision));
            Assert.AreEqual(expected, action.NewLearnerNumberFor(ItSupport));
        }