public static DWSamplingPlan MockDWSamplingPlan() { List <WSZSamplingPlan> wszSamplingPlans = new List <WSZSamplingPlan> { new WSZSamplingPlan(WSZSamplingPlan()), new WSZSamplingPlan(WSZSamplingPlan2()) }; List <Annotation> annotations = new List <Annotation> { new Annotation(Annotation()), new Annotation(Annotation()) }; DWSamplingPlan dw = new DWSamplingPlan { Id = Guid.NewGuid(), WSZSamplingPlans = wszSamplingPlans, Annotations = annotations, ParameterCount = MockParameterCount(), LocalAuthority = MockEntityReference("account", "Cork County Concil") }; return(dw); }
public ActionResult Index(Guid id) { if (AppSetup.LoadMockData) { DWSamplingPlan dw = MockFactory.MockDWSamplingPlan(); return(View(dw)); } else { DWSamplingPlan dw = new DWSamplingPlan(id); dw.RetrieveWSZSamplingPlan(); dw.LoadParameterCountList(); return(View(dw)); } }
public ActionResult Narrative(Guid id) { if (AppSetup.LoadMockData) { List <Annotation> annotations = MockFactory.MockAnnotations(); return(View(annotations)); } else { DWSamplingPlan dw = new DWSamplingPlan { Id = id }; dw.RetrieveAnnotations(); return(View(dw.Annotations)); } }
public ActionResult LATotals(DWSamplingPlan dw) { return(View(dw)); }
public ActionResult LAParameterCount(DWSamplingPlan dw) { return(View(dw)); }