private RegisterModel InitRegisterModel() { var listWithSelected = Lists.AllAsp <List <int> >(); listWithSelected.SelectedValues = new List <int> { 1, 2 }; var enumWithSelected = BsSelectList <NotificationType?> .FromEnum(typeof(NotificationType)); enumWithSelected.SelectedValues = NotificationType.Monthly; var countries = Lists.AllCountries <string>(); var ddlInitialValue = countries.Items.Where(x => x.Value == "RO").FirstOrDefault(); ddlInitialValue.Selected = true; var ddlWithSelected = new BsSelectList <string>() { Items = new List <BsSelectListItem> { ddlInitialValue }, SelectedValues = "ROU" }; var ideListWithSelected = Lists.AllIde <string>(); ideListWithSelected.SelectedValues = "Visual Studio"; var langListWithSelected = Lists.AllLanguages <List <string> >(); langListWithSelected.SelectedValues = new List <string> { "C#" }; var from = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 10, 30, 0); var to = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.AddDays(12).Day, 20, 00, 0); var javascriptMvcFrameworkWithSelected = Lists.AllJavascriptFrameworks <int>(); javascriptMvcFrameworkWithSelected.SelectedValues = 2; var webBrowsers = Lists.AllWebBrowsers <int>(); return(new RegisterModel() { CountriesList = ddlWithSelected, NotificationList = enumWithSelected, TechnologiesList = Lists.AllTech <List <int> >(), TechnologiesCheckboxList = listWithSelected, LanguagesList = langListWithSelected, IdeList = ideListWithSelected, GenderList = Lists.AllGenders <int>().ToSelectList().ToList(), Birthday = new BsDateTime(), Interval = new BsRange <DateTime> { From = new BsRangeItem <DateTime> { ItemValue = DateTime.Now }, To = new BsRangeItem <DateTime> { ItemValue = DateTime.Now.AddDays(12) } }, JavascriptMvcFramework = javascriptMvcFrameworkWithSelected, WebBrowsers = webBrowsers }); }