public void TestInit() { ServiceLocator.Clear(); MockTrainingCourseRepository.Clear(); MockRegistrationRepository.Clear(); MockRegistrationApprovalTaskRepository.Clear(); }
public void TestInit() { using (SPSite site = new SPSite(siteUrl)) { using (SPWeb web = site.AllWebs.Add(Guid.NewGuid().ToString(), "", "", 1033, "CONTOSOTRAINING#0", false, false)) { webId = web.ID; } } MockTrainingCourseRepository.Clear(); }
public void TestInit() { using (SPSite site = new SPSite(siteUrl)) { web = site.AllWebs.Add(Guid.NewGuid().ToString(), "", "", 1033, "CONTOSOTRAINING#0", false, false); userName = web.SiteUsers.GetByID(1).Name; } ServiceLocator.Clear(); MockTrainingCourseRepository.Clear(); MockRegistrationRepository.Clear(); MockRegistrationApprovalTaskRepository.Clear(); }
public void TestInit() { MockTrainingCourseRepository.Clear(); ServiceLocator.Clear(); }