Beispiel #1
0
 public EventAggregateSteps()
 {
     _config           = new ConfigurationFactory().CreateFromAzureSettings();
     _connectionString = new ConnectionStringFactory(_config).CreateFromAzureSettings("Stack:Shared:SqlConnection");
     _dbContext        = new DbContextFactory(_connectionString).Create();
     Aggregate         = new EventAggregate(_dbContext);
 }
 public VentureAppointmentsController(OccurrencesDbContext context)
 {
     _dbContext = context;
 }
 public EventSaveCommandSteps()
 {
     _config           = new ConfigurationFactory().CreateFromAzureSettings();
     _connectionString = new ConnectionStringFactory(_config).CreateFromAzureSettings("Stack:Shared:SqlConnection");
     _dbContext        = new DbContextFactory(_connectionString).Create();
 }
Beispiel #4
0
 public AssociateAppointmentsController(OccurrencesDbContext context)
 {
     _dbContext = context;
 }
Beispiel #5
0
 public EventGetHandler(OccurrencesDbContext dbContext)
 {
     _dbContext = dbContext;
     _validator = new EventGetQueryValidator();
     _errors    = new List <KeyValuePair <string, string> >();
 }