public GetWeatherFixture WireIoC()
        {
            FixtureElements = new GetWeatherFixtureElements();
            var builder   = IoCSetup.WireEverything();
            var container = builder.Build();

            FixtureElements.Container     = container;
            FixtureElements.LifetimeScope = container.BeginLifetimeScope();
            return(this);
        }
예제 #2
0
        protected void Application_Start()
        {
            var config = GlobalConfiguration.Configuration;

            config.Formatters.JsonFormatter.SerializerSettings.ContractResolver =
                new CamelCasePropertyNamesContractResolver();
            config.Formatters.JsonFormatter.UseDataContractJsonSerializer = false;

            log4net.Config.XmlConfigurator.Configure();
            IoCSetup.WireEverything().ConnectToWebApiDependencyResovler();
            GlobalConfiguration.Configure(WebApiConfig.Register);
        }