public UnitOfWork(string connectionString, IBusinessRuleRegistry businessRuleRegistry)
 {
     this.RegisterRepositories();
     this.connectionString     = connectionString;
     this.octopostDbContext    = this.CreateContext();
     this.businessRuleRegistry = businessRuleRegistry;
     this.changeTracker        = new Lazy <ChangeTracker>(() => new ChangeTracker(this.octopostDbContext));
 }
 public Repository(OctopostDbContext octopostDbContext) =>
 this.octopostDbContext = octopostDbContext;