public ReadViewModel(IEnumerable<ContentLink> links, DataPage pageData, string currentPage) { CurrentPage = currentPage; PageData = pageData; Links = links; SetNavigation(links); }
public void Before_Each_Test() { _aa1 = new ContentLink {Link = "aa1.htm", Text = "aa1"}; _aa2 = new ContentLink {Link = "aa2.htm", Text = "aa2"}; _aa3 = new ContentLink {Link = "aa3.htm", Text = "aa3"}; _aa4 = new ContentLink {Link = "", Text = "aa4"}; _aa5 = new ContentLink {Link = "aa5.htm", Text = "aa5"}; _links = new List<ContentLink> { _aa1, _aa2, _aa3, _aa4, _aa5 }; _dataPage = new DataPage(); }