Exemple #1
0
        public List<Personne> SelectList(SearchPersonne searchp)
        {
            MKSBusiness<Personne, List<Personne>, SearchPersonne> b = new MKSBusiness<Personne, List<Personne>, SearchPersonne>();
            b.SetValidationSearch(new ValidationSearchPersonne());

            return b.Select(searchp);
        }
Exemple #2
0
        public void Test(CommandEventArgsCustom args, IVuePersonne view, IPresenter presenter)
        {
            ServicePersonne s  = new ServicePersonne();
            SearchPersonne  sp = new SearchPersonne();

            sp.Nom = "LOLO";
            s.SelectList(sp);
        }
Exemple #3
0
        public override void Initialisation(bool isInit, IVuePersonne view, IPresenter presenter)
        {
            ServicePersonne s  = new ServicePersonne();
            SearchPersonne  sp = new SearchPersonne();

            sp.Nom = "LOLO";
            s.SelectList(sp);
        }
Exemple #4
0
        public List <Personne> SelectList(SearchPersonne searchp)
        {
            MKSBusiness <Personne, List <Personne>, SearchPersonne> b = new MKSBusiness <Personne, List <Personne>, SearchPersonne>();

            b.SetValidationSearch(new ValidationSearchPersonne());


            return(b.Select(searchp));
        }
Exemple #5
0
        public void ValidationSearchPersoneTest()
        {
            MKSBusiness<Personne, List<Personne>, SearchPersonne> b = new MKSBusiness<Personne, List<Personne>, SearchPersonne>();
            b.SetValidationSearch(new ValidationSearchPersonne());

            Personne searchpp = new Personne();
            ServicePersonne sp = new ServicePersonne();
            SearchPersonne searchp = new SearchPersonne();
            searchp.Nom = "LOLO";
            try
            {
                b.Select(searchp);
            }
            catch(Exception ex)
            {
                Assert.IsInstanceOfType(ex,typeof( MKS.Core.Model.Error.ExceptionProcess<MKS.Core.ProcessResults>));
            }
        }