/// <summary> /// Initialize the listener into a state where there is a MacroF4 mock available to implement that command. /// </summary> /// <param name="ml"></param> /// <returns></returns> private static MacroF4 SetupF4Implementation(MacroListener ml) { var macroF4 = new MacroF4(); var macroImplementors = new List <IFlexMacro>(new IFlexMacro[] { macroF4 }); ml.Macros = ml.AssignMacrosToSlots(macroImplementors); macroF4.BeEnabled = true; return(macroF4); }
/// <summary> /// Initialize the listener into a state where there is a MacroF4 mock available to implement that command. /// </summary> /// <param name="ml"></param> /// <returns></returns> private static MacroF4 SetupF4Implementation(MacroListener ml) { var macroF4 = new MacroF4(); var macroImplementors = new List<IFlexMacro>(new IFlexMacro[] {macroF4}); ml.Macros = ml.AssignMacrosToSlots(macroImplementors); macroF4.BeEnabled = true; return macroF4; }