Beispiel #1
0
 public void Should_throw_excepotion_if_schema_fields_to_reorder_not_valid()
 {
     Assert.Throws <ValidationException>(() => SchemaGuard.GuardCanReorder(schema, new List <long> {
         1
     }));
     Assert.Throws <ValidationException>(() => SchemaGuard.GuardCanReorder(schema, new List <long> {
         1, 3
     }));
 }
Beispiel #2
0
 public void Should_not_throw_excepotion_if_schema_fields_to_reorder_are_valid()
 {
     SchemaGuard.GuardCanReorder(schema, new List <long> {
         1, 2
     });
 }
Beispiel #3
0
        public void Should_not_throw_exception_if_schema_to_unpublish_published()
        {
            schema = schema.Publish();

            SchemaGuard.GuardCanUnpublish(schema);
        }
Beispiel #4
0
 public void Should_throw_exception_if_schema_to_unpublish_already_unpublished()
 {
     Assert.Throws <DomainException>(() => SchemaGuard.GuardCanUnpublish(schema));
 }
Beispiel #5
0
 public void Should_not_throw_exception_if_schema_to_publish_not_published()
 {
     SchemaGuard.GuardCanPublish(schema);
 }
Beispiel #6
0
        public void Should_throw_exception_if_schema_to_publish_already_published()
        {
            schema = schema.Publish();

            Assert.Throws <DomainException>(() => SchemaGuard.GuardCanPublish(schema));
        }