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 ------------------------- }
protected IDateTimePicker GetDateTimePicker(out DateTimePickerMapper dtpMapper, string propertyName) { IDateTimePicker dateTimePicker = GetControlFactory().CreateDateTimePicker(); dtpMapper = new DateTimePickerMapper(dateTimePicker, propertyName, false, GetControlFactory()); return dateTimePicker; }
protected IDateTimePicker GetDateTimePicker(out DateTimePickerMapper dtpMapper) { return GetDateTimePicker(out dtpMapper, "SampleDate"); }
public void AddUpdateBoPropOnValueChangedHandler(DateTimePickerMapper mapper) { }