public void Should_Return_UnknownConcept_As_TypeOf()
        {
            SymbolName testSpecName = ConceptSymbolName.REF_UNKNOWN;

            Assembly configAssembly = typeof(ProcessConfigSetCzModule).Assembly;

            IPayrollConcept testConcept = PayrollConceptFactory.ConceptFor(configAssembly, testSpecName.Name);

            Type testTypeOfConcept = testConcept.GetType();

            Assert.AreSame(typeof(UnknownConcept), testTypeOfConcept);
        }
Exemple #2
0
        public void Should_Return_UnknownConcept_From_Models()
        {
            SymbolName testSpecName = ConceptSymbolName.REF_UNKNOWN;

            IPayrollConcept testConcept = testConfig.FindConcept(testSpecName.Code);

            Type testTypeOfConcept = testConcept.GetType();

            Assert.AreSame(typeof(UnknownConcept), testTypeOfConcept);

            Assert.AreEqual(testConcept.ConceptCode(), testSpecName.Code);
        }