Example #1
0
        public void TestGetAllEmployees()
        {
            IEnumerable <Employe> liste = manager.GetEmployees();

            Assert.IsNotNull(liste);
            Assert.IsInstanceOfType(liste, typeof(IEnumerable <Employe>));
        }
Example #2
0
        static void Dump()
        {
            ManagerBLL bll = new ManagerBLL();

            Console.WriteLine("Debut Dump");
            try
            {
                Console.WriteLine("-- Employes --");
                foreach (Employe e in bll.GetEmployees())
                {
                    Console.WriteLine($"{e.Id} {e.Nom} {e.Prenom}");
                }
                Console.WriteLine("-- Fin Employes --");

                Console.WriteLine("-- Offres --");
                foreach (Offre o in bll.GetOffres())
                {
                    Console.WriteLine($"{o.Id} {o.Intitule} {o.Description} {o.Responsable} {o.Salaire} {o.Statut?.Libelle}");
                }
                Console.WriteLine("-- Fin Offres --");
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }

            Console.WriteLine("Fini");
        }
Example #3
0
 // GET: Employes
 public ActionResult Index()
 {
     return(View("Index", manager.GetEmployees()));
 }