/// <summary>
 /// Translates the sub sequence, according to the tanslation dictionary provided
 /// </summary>
 /// <param name="translationDictionary"></param>
 public void Translate(Translations.TranslationDictionary translationDictionary)
 {
     foreach (TestCase testCase in TestCases)
     {
         testCase.Translate(translationDictionary);
     }
 }
 /// <summary>
 /// Translates the current step, according to the translation dictionary
 /// </summary>
 /// <param name="translationDictionary"></param>
 public void Translate(Translations.TranslationDictionary translationDictionary)
 {
     foreach (Step step in Steps)
     {
         step.Translate(translationDictionary);
     }
 }
Esempio n. 3
0
        /// <summary>
        ///     Constructor
        /// </summary>
        /// <param name="dictionary"></param>
        public Window(TranslationDictionary dictionary)
        {
            InitializeComponent();

            translationTreeView.Root = dictionary;
            Text = dictionary.Dictionary.Name + " test translation view";
        }
Esempio n. 4
0
 /// <summary>
 /// Translates the frame according to the translation dictionary provided
 /// </summary>
 /// <param name="translationDictionary"></param>
 public void Translate(Translations.TranslationDictionary translationDictionary)
 {
     foreach (SubSequence subSequence in SubSequences)
     {
         subSequence.Translate(translationDictionary);
     }
 }
Esempio n. 5
0
        public override TranslationDictionary createTranslationDictionary()
        {
            TranslationDictionary retVal = new Tests.Translations.TranslationDictionary();

            _defaultValueSetter.SetDefaultValue(retVal);

            return(retVal);
        }
Esempio n. 6
0
        /// <summary>
        ///     Constructor
        /// </summary>
        /// <param name="dictionary"></param>
        public Window(TranslationDictionary dictionary)
        {
            InitializeComponent();

            translationTreeView.Root = dictionary;
            testBrowserStatusLabel.Text = translationTreeView.Root.TranslationsCount + " translation rule(s) loaded";
            translationTreeView.AfterSelect += translationTreeView_AfterSelect;
            Text = dictionary.Dictionary.Name + " test translation view";
        }
Esempio n. 7
0
        /// <summary>
        /// Translates the current step according to the translation dictionary
        /// Removes all preconditions, actions and expectations
        /// </summary>
        /// <param name="translationDictionary"></param>
        public void Translate(Translations.TranslationDictionary translationDictionary)
        {
            if (getTranslationRequired())
            {
                SubSteps.Clear();

                Translations.Translation translation = translationDictionary.findTranslation(getDescription());
                if (translation != null)
                {
                    translation.UpdateStep(this);
                    setTranslated(true);
                }
            }
        }
        public override TranslationDictionary createTranslationDictionary()
        {
            TranslationDictionary retVal = new Tests.Translations.TranslationDictionary();

            _defaultValueSetter.SetDefaultValue(retVal);

            return retVal;
        }