public void AddTeam_Save() { SiteTeamModel team = new SiteTeamModel() { TeamName = "Team 2", DateCreated = DateTime.Now }; service.AddSiteTeam(team); var result = unitOfWork.Save(); Assert.AreEqual(true, result); }
/// <summary> /// Updates a single SiteTeam. /// </summary> /// <param name="siteTeam"> The model of the SiteTeam to update. </param> public void UpdateSiteTeam(SiteTeamModel siteTeam) { unitOfWork.SiteTeamRepo.Update(siteTeam); }
/// <summary> /// Adds a single SiteTeam. /// </summary> /// <param name="siteTeam"> The model of the SiteTeam to be added. </param> public void AddSiteTeam(SiteTeamModel siteTeam) { unitOfWork.SiteTeamRepo.Add(siteTeam); }
public void GetTeam() { SiteTeamModel team = service.GetSiteTeam(4); Assert.AreEqual("Team 1", team.TeamName); }