protected override void before_each() { base.before_each(); another_aggregate = new AnAggregate(Guid.NewGuid().ToString(), aggregate_content + "more text"); the_aggregate = new AnAggregate(Guid.NewGuid().ToString(), aggregate_content); the_repository = new DbRepository(new Db(Startup.Database.connection_string)); the_repository.Register <AnAggregate>(aggregate_table_name, null); the_result = null; }
private void getting_all_published_versions() { the_result = the_repository.GetAllPublishedAsync <AnAggregate>().Result.SingleOrDefault(); }
private void getting_the_aggregate() { the_result = the_repository.GetAsync <AnAggregate>(the_aggregate.Id).Result; }