Beispiel #1
0
 public void VarMapper_DummyHandler(object sender, MappingChangeEventArgs ea)
 {
     VarMapper_TimesCalled++;
 }
 public void MappingChange_DummyHandler(object sender, MappingChangeEventArgs ea)
 {
     MappingChange_TimesCalled++;
 }
 internal override void _paramMgr_MappingChanged(object sender, MappingChangeEventArgs ea)
 {
     _paramMgr_MappingChanged_TimesCalled++;
 }
Beispiel #4
0
 public void MappingChanged_DummyHandler(object sender, MappingChangeEventArgs ea)
 {
     //throw new Exception("The method or operation is not implemented.");
 }
Beispiel #5
0
 /// <summary>
 /// Triggers the MappingChange event.
 /// </summary>
 internal virtual void OnMappingChange(MappingChangeEventArgs ea)
 {
     if (MappingChange != null)
         MappingChange(this, ea);
 }
        public void _paramMgr_MappingChanged_UpdatesElementStateToIncompleteWhenActionIsModify()
        {
            ElementStatus expectedStatus = ElementStatus.Incomplete;
            MappingChangeEventArgs args = new MappingChangeEventArgs(null, Action.Modify);
            var mockParamMgr = new Mock<IParamMgr>();
            _element._paramMgr_MappingChanged(mockParamMgr, args);

            ElementStatus actualStatus = _element.Status;

            Assert.Equal(expectedStatus, actualStatus);
        }
Beispiel #7
0
 internal void _paramMgr_MappingChanged(object sender, MappingChangeEventArgs ea)
 {
     if (sender != null)
     {
         if (ea.Activity != Activity.None)
         {
             // in all cases, if a workspace var - param value is changed, the element is incomplete
             SetStatus(ElementStatus.Incomplete, StatusChangeDriver.NormalTransition, null);
         }
     }
 }
Beispiel #8
0
 internal void _varMapper_MappingChange(object sender, MappingChangeEventArgs ea)
 {
     if (ea.Activity == Activity.Delete || ea.Activity == Activity.Modify)
     {
         OnMappingChanged(new MappingChangeEventArgs(ea));
     }
 }
Beispiel #9
0
 /// <summary>
 /// Triggers the MappingChanged event.
 /// </summary>
 public virtual void OnMappingChanged(MappingChangeEventArgs ea)
 {
     if (MappingChanged != null)
         MappingChanged(this, ea);
 }
Beispiel #10
0
 public MappingChangeEventArgs(MappingChangeEventArgs arg)
 {
     ParamNames = new string[arg.ParamNames.Length];
     arg.ParamNames.CopyTo(ParamNames, 0);
     Activity = arg.Activity;
 }