public void CanGetByURL() { string URL = "~/Accounts/Accounts.aspx"; var p = _pageRepository.GetByURL(URL); Assert.IsNotNull(p); Assert.AreEqual(1, p.ID); }