示例#1
0
        public void TestCheckAddress()
        {
            AddressManager m = new AddressManager(null, null, null, null, null);


            Address valid = new Address()
            {
                AddressId   = 3,
                CommunityId = 5,
                Location    = "AddressxD"
            };

            Address invalid = new Address()
            {
                AddressId = -3,
                Location  = "AddressxD"
            };

            Assert.IsTrue(m.CheckAddress(valid));
            Assert.IsFalse(m.CheckAddress(invalid));
        }