Esempio n. 1
0
        public void AddMultipleProblemLinks()
        {
            AssetsDataManager     alm = new AssetsDataManager();
            ProblemLinkageManager plm = new ProblemLinkageManager(alm);

            plm.AddProblemLinkage("id1", "asset1");
            plm.AddProblemLinkage("id2", new string [] { "asset2", "asset3" });

            Assert.AreEqual("asset1", plm.GetAssets("id1")[0]);
            Assert.AreEqual("asset2", plm.GetAssets("id2")[0]);
            Assert.AreEqual("asset3", plm.GetAssets("id2")[1]);
        }
Esempio n. 2
0
        public void AddLinkage()
        {
            AssetsDataManager     alm = new AssetsDataManager();
            ProblemLinkageManager plm = new ProblemLinkageManager(alm);

            plm.AddProblemLinkage("id", new string [] { "asset1" });
            Assert.AreEqual("asset1", plm.GetAssets("id")[0]);
        }