Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            //Dependency' ler Register ediliyor
            Bootstrapper.Instance
               .Bootstrap(new DependencyBootstrapper());

            //IServiceBase interface' inin hangi class ile calistigi resolve ediliyor.
            _serviceStudent = DependencyContainer.Current.Resolve<IServiceStudent>();

            ////ornek islemler
            InsertStudent();
            UpdateStudent();
            GetStudentById();
            GetAllStudents();

            Console.ReadLine();

            _serviceFirm = DependencyContainer.Current.Resolve<IServiceFirm>();
            var firm = _serviceFirm.GetById(1);
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            //Dependency' ler Register ediliyor
            Bootstrapper.Instance
            .Bootstrap(new DependencyBootstrapper());



            //IServiceBase interface' inin hangi class ile calistigi resolve ediliyor.
            _serviceStudent = DependencyContainer.Current.Resolve <IServiceStudent>();

            ////ornek islemler
            InsertStudent();
            UpdateStudent();
            GetStudentById();
            GetAllStudents();

            Console.ReadLine();

            _serviceFirm = DependencyContainer.Current.Resolve <IServiceFirm>();
            var firm = _serviceFirm.GetById(1);
        }