상속: Waf.InformationManager.Common.Domain.ValidationModel
예제 #1
0
파일: AddressTest.cs 프로젝트: jbe2277/waf
        public void PropertiesTest()
        {
            var address = new Address();

            AssertHelper.PropertyChangedEvent(address, x => x.Street, () => address.Street = "Main St. 4567");
            Assert.AreEqual("Main St. 4567", address.Street);

            AssertHelper.PropertyChangedEvent(address, x => x.City, () => address.City = "Buffalo");
            Assert.AreEqual("Buffalo", address.City);

            AssertHelper.PropertyChangedEvent(address, x => x.State, () => address.State = "New York");
            Assert.AreEqual("New York", address.State);

            AssertHelper.PropertyChangedEvent(address, x => x.PostalCode, () => address.PostalCode = "98052");
            Assert.AreEqual("98052", address.PostalCode);

            AssertHelper.PropertyChangedEvent(address, x => x.Country, () => address.Country = "United States");
            Assert.AreEqual("United States", address.Country);
        }
예제 #2
0
 public Contact()
 {
     this.address = new Address();
 }
예제 #3
0
파일: Contact.cs 프로젝트: jbe2277/waf
 public Contact()
 {
     address = new Address();
 }