Ejemplo n.º 1
0
            public void LanguageTest()
            {
                // Start Add test. (Reports)
                test = extent.StartTest("Profile Language");

                //Populate the excel data
                GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPathProfile, "Language");

                Language language = new Language();

                language.NavigateToLanguageTab();

                //Add and Validate added Language
                language.AddNewLanguage();
                language.ValidateAddedLanguage();

                //Update and validate updated Language
                language.UpdateLanguage();
                language.ValidateUpdateLanguage();

                //Delete and Validate deleted Language
                language.DeleteLanguage();
                language.ValidateDeleteLanguage();
            }
Ejemplo n.º 2
0
        // POST api/<controller>
        public List <Language> Post([FromBody] Language lang)
        {
            Language ln = new Language();

            return(ln.AddNewLanguage(lang));
        }