// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { // Add framework services. //services.AddMvc();b services .AddCors() .AddMvcCore() .AddJsonFormatters(x => { x.Formatting = Newtonsoft.Json.Formatting.Indented; x.ContractResolver = new CamelCasePropertyNamesContractResolver(); }) .AddDataAnnotations(); services.Configure <Configuration>(Configuration.GetSection("ScotlandsMountains")); services.AddSingleton <IDomainRoot>(x => DomainRoot.Load()); services.AddSingleton <IEmailHelper, EmailHelper>(); services.AddSingleton <IRecaptchaHelper, RecaptchaHelper>(); }
//[Ignore("Slow manual test harness")] public void ImportFromDomainJson() { var sut = DomainRoot.Load(); AssertDomain(sut); }