public void CanUpdate_should_not_throw_exception_if_not_locked() { var command = new UpdateField { FieldId = 1, Properties = new StringFieldProperties() }; GuardSchemaField.CanUpdate(schema_0, command); }
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)); }