public void TestAlternateTaxTableCollectionTestFactoriesDuplicateName()
        {
            AlternateTaxTableCollection attc = new AlternateTaxTableCollection();
            AlternateTaxTable           att  = attc.Factory("name");

            att = attc.Factory("name"); //blow up
        }
        public void TestAlternateTaxTableCollectionTestFactories()
        {
            AlternateTaxTableCollection attc = new AlternateTaxTableCollection();
            AlternateTaxTable           att  = attc.Factory("name");

            Assert.AreEqual(att.Name, "name");
            att = attc.Factory("name2", true);
            Assert.AreEqual(att.Name, "name2");
            Assert.AreEqual(att.StandAlone, true);
        }
        public void TestAlternateTaxTableCollectionTestDelete()
        {
            AlternateTaxTableCollection attc = new AlternateTaxTableCollection();
            AlternateTaxTable           att  = attc.Factory("name");

            attc.Factory("name2", true);
            Assert.IsTrue(attc.Exists("name"));
            Assert.IsTrue(attc.Exists("name2"));
            attc.Delete("name");
            Assert.IsFalse(attc.Exists("name"));
            Assert.IsTrue(attc.Exists("name2"));
        }
 public void TestAlternateTaxTableCollectionTestDelete() {
   AlternateTaxTableCollection attc = new AlternateTaxTableCollection();
   AlternateTaxTable att = attc.Factory("name");
   attc.Factory("name2", true);
   Assert.IsTrue(attc.Exists("name"));
   Assert.IsTrue(attc.Exists("name2"));
   attc.Delete("name");
   Assert.IsFalse(attc.Exists("name"));
   Assert.IsTrue(attc.Exists("name2"));
 }
 public void TestAlternateTaxTableCollectionTestFactoriesDuplicateName() {
   AlternateTaxTableCollection attc = new AlternateTaxTableCollection();
   AlternateTaxTable att = attc.Factory("name");
   att = attc.Factory("name"); //blow up
 }
 public void TestAlternateTaxTableCollectionTestFactoriesNullName() {
   AlternateTaxTableCollection attc = new AlternateTaxTableCollection();
   AlternateTaxTable att = attc.Factory(null);
 }
 public void TestAlternateTaxTableCollectionTestFactories() {
   AlternateTaxTableCollection attc = new AlternateTaxTableCollection();
   AlternateTaxTable att = attc.Factory("name");
   Assert.AreEqual(att.Name, "name");
   att = attc.Factory("name2", true);
   Assert.AreEqual(att.Name, "name2");
   Assert.AreEqual(att.StandAlone, true);
 }
 public void TestAlternateTaxTableCollectionTestFactoriesNullName()
 {
     AlternateTaxTableCollection attc = new AlternateTaxTableCollection();
     AlternateTaxTable           att  = attc.Factory(null);
 }