public void ConfigureServices(IServiceCollection services)
        {
            services.AddMvc()
            .SetCompatibilityVersion(CompatibilityVersion.Version_2_2)
            .AddJsonOptions(json =>
            {
                json.SerializerSettings.Formatting       = Formatting.Indented;
                json.SerializerSettings.ContractResolver = new DefaultContractResolver
                {
                    NamingStrategy = new CamelCaseNamingStrategy()
                };
            });

            services.AddSingleton(s =>
                                  new TransactionRepository(() => TransactionRepository.ReadTransactionsFromFile(contentRoot)));
        }
 public TransactionsController(TransactionRepository repository)
 {
     this.repository = repository;
 }