Ejemplo n.º 1
0
        public void Test_AddTargetToEmptyDict()
        {
            IArticleConfigProfile configProfile = InitConfigModel();

            ArticleSourceStore testBucket = new ArticleSourceStore(configProfile);

            ISourceValues values = new ArticleEmptySource();

            IArticleTarget testArticle      = testBucket.AddGeneralItem(HEAD_CODE_NULL, PART_CODE_NULL, BODY_CODE_TEST, BODY_SEED_NULL, values);
            string         testArticleLabel = "0-0-FACT_UNKNOWN-1";

            Assert.AreEqual(testArticleLabel, testArticle.ToSymbolString <ArticleCodeCz>());
        }
Ejemplo n.º 2
0
        public void Test_AddSecondTargetToDictBetween()
        {
            IArticleConfigProfile configProfile = InitConfigModel();

            ArticleSourceStore testBucket = new ArticleSourceStore(configProfile);

            const TargetSeed TestSeed01 = 1;
            const TargetSeed TestSeed02 = 3;
            const TargetSeed TestSeed03 = 4;

            ISourceValues values = new ArticleEmptySource();

            IArticleTarget prepArticle1 = testBucket.StoreGeneralItem(HEAD_CODE_NULL, PART_CODE_NULL, BODY_CODE_TEST, TestSeed01, values);
            IArticleTarget backArticle2 = testBucket.StoreGeneralItem(HEAD_CODE_NULL, PART_CODE_NULL, BODY_CODE_TEST, TestSeed02, values);
            IArticleTarget backArticle3 = testBucket.StoreGeneralItem(HEAD_CODE_NULL, PART_CODE_NULL, BODY_CODE_TEST, TestSeed03, values);

            IArticleTarget testArticle      = testBucket.AddGeneralItem(HEAD_CODE_NULL, PART_CODE_NULL, BODY_CODE_TEST, BODY_SEED_NULL, values);
            string         testArticleLabel = "0-0-FACT_UNKNOWN-2";

            Assert.AreEqual(testArticleLabel, testArticle.ToSymbolString <ArticleCodeCz>());
        }