//Abstract Methods - Project Vertical //Virutal Methods - Project Vertical protected virtual ProjectVertical GetProjectVerticalFromReader(IDataReader reader) { EntityConverter <ProjectVertical> pv = new EntityConverter <ProjectVertical>(); ProjectVertical projectVertical = pv.Convert(reader); return(projectVertical); }
/// <summary> /// Creates the project collection. /// </summary> /// <returns></returns> private List <Project> CreateProjectCollection() { ProjectVertical projectVertical = new ProjectVertical(); ProjectType projectType = new ProjectType(); CodeMaster codeMaster = new CodeMaster(); ProjectStatus projectStatus = new ProjectStatus(); Contact contact = new Contact(); contact.ContactID = 0; projectType.ProjectTypeID = 0; codeMaster.CodeMasterID = 0; projectStatus.ProjectStatusID = 0; List <Project> projectCollection = new List <Project> { new Project() { ProjectName = "MockProject" , DistributionList = string.Empty , ProjectVerticalID = 0 , ProjectVertical = projectVertical , Contact = contact , ProjectNumber = 0 , ProjectType = projectType , CodeMaster = codeMaster , InitialEstimatedPages = 0 , ExpectedStartDate = DateTime.Now , ProjectStatus = projectStatus , StatusDate = DateTime.Now , IsTypeSet = true , IsTranslations = true , IsHospitality = true , IsMedia = true , IsFiling = true , IsPrint = true , ExpectedFilingDate = null , Comments = "MockComments" }, new Project() { ProjectName = "MockProject1" , DistributionList = string.Empty , ProjectVerticalID = 1 , ProjectVertical = projectVertical , Contact = contact , ProjectNumber = 1 , ProjectType = projectType , CodeMaster = codeMaster , InitialEstimatedPages = 1 , ExpectedStartDate = DateTime.Now , ProjectStatus = projectStatus , StatusDate = DateTime.Now , IsTypeSet = false , IsTranslations = false , IsHospitality = false , IsMedia = false , IsFiling = false , IsPrint = false , ExpectedFilingDate = null , Comments = "MockComments1" }, }; return(projectCollection); }