예제 #1
0
        public void Setup()
        {
            Context.Reset();
            ctx      = Context.instance;
            ctxParam = new ContextParam();
            cleanDB();

            oCand = new Candidat("Marc Collin");
            ctx.Candidats.Add(oCand);
            oDip             = new Diplome("CAFDES");
            oDip.Description = "Description du CAFDES";
            oDip.addDomainecompetence("DC1");
            oDip.addDomainecompetence("DC2");
            oDip.addDomainecompetence("DC3");
            oDip.addDomainecompetence("DC4");
            ctx.Diplomes.Add(oDip);
            oDip             = new Diplome("DEIS");
            oDip.Description = "Description du CAFDES";
            oDip.addDomainecompetence("DC1");
            oDip.addDomainecompetence("DC2");
            oDip.addDomainecompetence("DC3");
            oDip.addDomainecompetence("DC4");
            ctx.Diplomes.Add(oDip);
            oDip             = new Diplome("CAFERUIS");
            oDip.Description = "Description du CAFDES";
            oDip.addDomainecompetence("DC1");
            oDip.addDomainecompetence("DC2");
            oDip.addDomainecompetence("DC3");
            oDip.addDomainecompetence("DC4");

            ctx.Diplomes.Add(oDip);
            SaveChanges();


            MyViewModel VM = new MyViewModel();

            VM.ParamDelaiValiditeL1 = 0;
        }