Exemplo n.º 1
0
        public void CanHide_should_throw_exception_if_not_found()
        {
            var command = new HideField {
                FieldId = 3
            };

            Assert.Throws <DomainObjectNotFoundException>(() => GuardSchemaField.CanHide(schema_0, command));
        }
Exemplo n.º 2
0
        public void CanHide_hould_not_throw_exception_if_visible()
        {
            var command = new HideField {
                FieldId = 1
            };

            GuardSchemaField.CanHide(schema_0, command);
        }
Exemplo n.º 3
0
        public void CanHide_should_throw_exception_if_already_hidden()
        {
            var command = new HideField {
                FieldId = 1
            };

            var schema_1 = schema_0.HideField(1);

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