public void TestTranslationHelper()
        {
            //returns defult translations
            var translationDictionary = LocalisationHelper.ParseDefaultLocalisation();

            Assert.IsNotNull(translationDictionary);
        }
        public void TestExclusionCriteriaMisinterpretation()
        {
            var translationDictionary = LocalisationHelper.ParseDefaultLocalisation();
            var translator            = new Translator(translationDictionary);

            var criterionSpecification = new CriterionSpecification();
            var criterion = criterionSpecification.ExclusionGrounds.Misinterpretation.First();

            var translatedCriterion = translator.TranslateCriterion(criterion);

            Assert.AreEqual("Guilty of misinterpretation, withheld information, unable to provide required documents and obtained confidential information of this procedure", criterion.Name);
            AssertDescription(new[] { "Can the economic operator confirm that:",
                                      "a) It has been guilty of serious misrepresentation in supplying the information required for the verification of the absence of grounds for exclusion or the fulfilment of the selection criteria,",
                                      "b) It has withheld such information,",
                                      "c) It has not been able, without delay, to submit the supporting documents required by a contracting authority or contracting entity, and",
                                      "d) It has undertaken to unduly influence the decision making process of the contracting authority or contracting entity, to obtain confidential information that may confer upon it undue advantages in the procurement procedure or to negligently provide misleading information that may have a material influence on decisions concerning exclusion, selection or award?" }, translatedCriterion.Description);
        }
        public void TestExclusionCriteria()
        {
            var translationDictionary = LocalisationHelper.ParseDefaultLocalisation();
            var translator            = new Translator(translationDictionary);

            var criterionSpecification = new CriterionSpecification();
            var criterion = criterionSpecification.ExclusionGrounds.Contributions.First();

            var translatedCriterion = translator.TranslateCriterion(criterion);

            Assert.AreEqual("Payment of taxes", criterion.Name);
            AssertDescription("Has the economic operator breached its obligations relating to the payment of taxes, both in the country in which it is established and in Member State of the contracting authority or contracting entity if other than the country of establishment?", translatedCriterion.Description);


            Assert.AreEqual("Your answer?", criterion.TenderingCriterionPropertyGroups.First().SubsidiaryTenderingCriterionPropertyGroups.First().TenderingCriterionProperties.First().Description);
            Assert.AreEqual("Country or member state concerned", criterion.TenderingCriterionPropertyGroups.First().SubsidiaryTenderingCriterionPropertyGroups.First().SubsidiaryTenderingCriterionPropertyGroups.First().TenderingCriterionProperties.First().Description);
        }