/// <summary>
 /// Builds a dynamic ending dialog, based on previous dialog score.
 /// </summary>
 /// <param name="dialogs">The dialog collection</param>
 /// <param name="factory">The factory used to create dialogs</param>
 /// <param name="dialogName">The name of the dialog</param>
 /// <param name="requiredScore">The score required for a positive ending</param>
 /// <param name="positiveEnd">The next step in case of a positive ending</param>
 /// <param name="negativeEnd">The next step in case of a negative ending</param>
 /// <returns>
 /// The <see cref="DialogSet"/>.
 /// </returns>
 public static DialogSet WithDynamicEnd(
     this DialogSet dialogs,
     IDialogFactory <DialogSet> factory,
     string dialogName,
     int requiredScore,
     IDialogStep positiveEnd,
     IDialogStep negativeEnd)
 {
     return(factory.BuildDynamicEndDialog(dialogs, dialogName, requiredScore, positiveEnd, negativeEnd));
 }