private void AddSite(int siteId, string name, string tagline) { Site Site = new Site(siteId) { Name = name, Tagline = tagline }; SiteRepository.SaveOrUpdate(Site); FlushSessionAndEvict(Site); }
public void CanCreateSite() { int siteId = 1; string name = "CS493 Test Site"; string tagline = "Capstone Project"; Site testSite = new Site(siteId) { Name = name, Tagline = tagline }; Assert.AreEqual(testSite.SiteId, siteId); Assert.AreEqual(testSite.Name, name); Assert.AreEqual(testSite.Tagline, tagline); }
public void CanCompareSites() { int siteId = 1; Site testSite = new Site(siteId); Assert.AreEqual(testSite, new Site(siteId)); }