Пример #1
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     GlobalConfiguration.Configure(WebApiConfig.Register);
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     AutofacModule.RegisterDependencies();
 }
Пример #2
0
        public XmlDocument GetXmlFeed()
        {
            var container = AutofacModule.RegisterDependencies();

            using (var scope = container.BeginLifetimeScope())
            {
                var _xmlFeedProvider = scope.Resolve <IXmlFeedProvider>();

                mockXmlData = _xmlFeedProvider.GenerateMockXmlFeedData();
            }

            return(mockXmlData);
        }