// This method gets called by the runtime. Use this method to add services to the container. // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940 public void ConfigureServices(IServiceCollection services) { services.AddScoped <LookupDbService>(); services.AddScoped <CatalogDbService>(); services.AddScoped <TrackingDbService>(); services.AddScoped <NumberingDbService>(); SqlMapperEx.InitMappers(); services.AddMvc().AddNewtonsoftJson(); services.AddResponseCompression(opts => { opts.MimeTypes = ResponseCompressionDefaults.MimeTypes.Concat( new[] { "application/octet-stream" }); }); }
public void Setup() { _service = new LookupDbService(TestConfig.GetConfig()); SqlMapperEx.InitMappers(); }
public void Setup() { _trackingService = new TrackingDbService(TestConfig.GetConfig()); _catalogService = new CatalogDbService(TestConfig.GetConfig()); SqlMapperEx.InitMappers(); }