Ejemplo n.º 1
0
        protected override void ApplicationStartup(TinyIoCContainer container, IPipelines pipelines)
        {
            var movieProvider = new MovieProvider();
            var ordermat      = new Ordermat();

            //dummy daten
            movieProvider.Save(new Movie("1", "Star Wars2"));

            ordermat.OnNewReservation += movieProvider.SaveWithReservation;

            container.Register <IMovieProvider>(movieProvider);
            container.Register <Ordermat>(ordermat);
        }