Wraps a DateTimePicker in order to display and capture a DateTime property of the business object
Inheritance: ControlMapper
コード例 #1
0
        public void TestCreateDateTimePickermapper()
        {
            //---------------Set up test pack-------------------
            IDateTimePicker dateTimePicker = GetControlFactory().CreateDateTimePicker();
            //---------------Verify test pack-------------------
            //---------------Execute Test ----------------------
            string propertyName = "SampleDateProperty";
            DateTimePickerMapper dtpMapper = new DateTimePickerMapper(dateTimePicker, propertyName, false, GetControlFactory());

            //---------------Verify Result -----------------------
            Assert.AreEqual(dateTimePicker, dtpMapper.DateTimePicker);
            Assert.AreEqual(propertyName, dtpMapper.PropertyName);
            //---------------Tear Down -------------------------   
        }
コード例 #2
0
 protected IDateTimePicker GetDateTimePicker(out DateTimePickerMapper dtpMapper, string propertyName)
 {
     IDateTimePicker dateTimePicker = GetControlFactory().CreateDateTimePicker();
     dtpMapper = new DateTimePickerMapper(dateTimePicker, propertyName, false, GetControlFactory());
     return dateTimePicker;
 }
コード例 #3
0
 protected IDateTimePicker GetDateTimePicker(out DateTimePickerMapper dtpMapper)
 {
     return GetDateTimePicker(out dtpMapper, "SampleDate");
 }
コード例 #4
0
 public void AddUpdateBoPropOnValueChangedHandler(DateTimePickerMapper mapper)
 {
     
 }