Exemple #1
0
        public void TestXml()
        {
            var du = new DataUser(new XmlDataAccessStrategy("cd_catalog.xml"));
            var result = du.UseData();

            Assert.AreEqual(result, 7);
        }
Exemple #2
0
        public void TestDb()
        {
            var du = new DataUser(new DbDataAccessStrategy());
            var result = du.UseData();

            Assert.AreEqual(result, 60);
        }