Beispiel #1
0
        public void blow_on_soft_deleted_aggregates()
        {
            var projection = new AllGood();
            var options    = new StoreOptions();

            options.Schema.For <MyAggregate>().SoftDeleted();

            var errors = projection.ValidateConfiguration(options).ToArray();

            errors.Single().ShouldBe("AggregateProjection cannot support aggregates that are soft-deleted");
        }
Beispiel #2
0
        public void happy_path_validation_for_aggregation()
        {
            var projection = new AllGood();

            projection.CompileAndAssertValidity();
        }