예제 #1
0
        public void CanUpdate_should_not_throw_exception_if_not_locked()
        {
            var command = new UpdateField {
                FieldId = 1, Properties = new StringFieldProperties()
            };

            GuardSchemaField.CanUpdate(schema_0, command);
        }
예제 #2
0
        public void CanUpdate_should_throw_exception_if_locked()
        {
            var command = new UpdateField {
                FieldId = 1, Properties = new StringFieldProperties()
            };

            var schema_1 = schema_0.LockField(1);

            Assert.Throws <DomainException>(() => GuardSchemaField.CanUpdate(schema_1, command));
        }