public void KendoAutoComplete(KendoLibrary library) { var control = GoToSnippetPage(library) .Get <KendoAutoComplete <SnippetPage> >(); TestControl(control); }
private static string ResolveSnippetPageUrl(KendoLibrary library, string componentName) { return(library switch { KendoLibrary.JQuery => componentName.ToLowerInvariant(), KendoLibrary.AspNetMvc => $"https://demos.telerik.com/aspnet-mvc/{componentName.ToLowerInvariant()}", KendoLibrary.AspNetCore => $"https://demos.telerik.com/aspnet-core/{componentName.ToLowerInvariant()}", _ => $"https://atata-kendoui-{library.ToString().ToLowerInvariant()}-{componentName.ToLowerInvariant()}.stackblitz.io", });
private static string ResolveSnippetPageUrl(KendoLibrary library, string componentName) { switch (library) { case KendoLibrary.JQuery: return(componentName.ToLowerInvariant()); case KendoLibrary.AspNetMvc: return($"https://demos.telerik.com/aspnet-mvc/{componentName.ToLowerInvariant()}"); case KendoLibrary.AspNetCore: return($"https://demos.telerik.com/aspnet-core/{componentName.ToLowerInvariant()}"); default: return($"https://atata-kendoui-{library.ToString().ToLowerInvariant()}-{componentName.ToLowerInvariant()}.stackblitz.io"); } }
public void KendoDatePicker(KendoLibrary library) { var control = GoToSnippetPage(library).Get <KendoDatePicker <SnippetPage> >(); TestControl(control); }
protected static SnippetPage GoToSnippetPage(KendoLibrary library, string componentName) { string url = ResolveSnippetPageUrl(library, componentName); return(GoToSnippetPage(url)); }
protected static SnippetPage GoToSnippetPage(KendoLibrary library) { string componentName = RetrieveComponentNameFromTestName(); return(GoToSnippetPage(library, componentName)); }
public void KendoDropDownList(KendoLibrary library) { var control = GoToSnippetPage(library).Get <KendoDropDownList <SnippetPage> >(); TestControl(control); }
public void KendoNumericTextBox(KendoLibrary library) { var control = GoToSnippetPage(library).Get <KendoNumericTextBox <SnippetPage> >(); TestControl(control); }