Example #1
0
        public StartupBasic()
        {
            var container = new Container();

            Register.Configuration(container);
            container.RegisterMvcControllers(Assembly.GetExecutingAssembly());
            DependencyResolver.SetResolver(new SimpleInjectorDependencyResolver(container));

            this._configuration = container.GetInstance <IConfiguration>();
            this._movieCup      = container.GetInstance <IMovieCup>();
        }
 public CopaFilmeController(IConfiguration configuration, IMovieCup movieCup)
 {
     this._configuration = configuration;
     this._movieCup      = movieCup;
 }