예제 #1
0
 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;
 }
예제 #2
0
 private void getting_all_published_versions()
 {
     the_result = the_repository.GetAllPublishedAsync <AnAggregate>().Result.SingleOrDefault();
 }
예제 #3
0
 private void getting_the_aggregate()
 {
     the_result = the_repository.GetAsync <AnAggregate>(the_aggregate.Id).Result;
 }