public void Should_Return_UnknownArticle_As_TypeOf() { SymbolName testSpecName = ConfigSetCzArticleName.REF_UNKNOWN; Assembly configAssembly = typeof(ProcessConfigSetCzModule).Assembly; IPayrollArticle testArticle = PayrollArticleFactory.ArticleFor(configAssembly, testSpecName.Name); Type testTypeOfArticle = testArticle.GetType(); Assert.AreSame(typeof(UnknownArticle), testTypeOfArticle); }
public void Should_Return_UnknownArticle_From_Models() { SymbolName testSpecName = ArticleSymbolName.REF_UNKNOWN; IPayrollArticle testArticle = testConfig.FindArticle(testSpecName.Code); Type testTypeOfArticle = testArticle.GetType(); Assert.AreSame(typeof(UnknownArticle), testTypeOfArticle); Assert.AreEqual(testArticle.ArticleCode(), testSpecName.Code); }