Пример #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);
        }
Пример #2
0
 public void ValidationPersoneTest()
 {
     MKSBusiness<Personne> b = new MKSBusiness<Personne>();
     b.SetValidation(new ValidationPersonne());
     Personne p = new Personne();
     p.Nom = "LOLO";
     b.Select(p);
 }
Пример #3
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));
        }
Пример #4
0
        public Personne Ajouter(Personne personne)
        {
            MKSBusiness<Personne> b = new MKSBusiness<Personne>();

            b.SetValidation(new ValidationPersonne());
            b.SetPreProcessAdd(new ProcessAddPersonne());

            return b.Add(personne);
        }
Пример #5
0
        public Personne Ajouter(Personne personne)
        {
            MKSBusiness <Personne> b = new MKSBusiness <Personne>();

            b.SetValidation(new ValidationPersonne());
            b.SetPreProcessAdd(new ProcessAddPersonne());


            return(b.Add(personne));
        }
Пример #6
0
        public void ValidationPersoneTest()
        {
            MKSBusiness <Personne> b = new MKSBusiness <Personne>();

            b.SetValidation(new ValidationPersonne());
            Personne p = new Personne();

            p.Nom = "LOLO";
            b.Select(p);
        }
Пример #7
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>));
            }
        }
Пример #8
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>));
            }
        }