Exemple #1
0
        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);
        }
Exemple #2
0
 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));
     }
 }
Exemple #3
0
 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));
     }
 }
Exemple #4
0
 public ActionResult LATotals(DWSamplingPlan dw)
 {
     return(View(dw));
 }
Exemple #5
0
 public ActionResult LAParameterCount(DWSamplingPlan dw)
 {
     return(View(dw));
 }