Exemplo n.º 1
0
        public void AliasFields()
        {
            var notification = new Notification();
            notification.RegisterMessage("Field1", "aaa[Field1]aaa", Severity.Error);

            notification.AliasFieldInMessages("Field1", "The First Field");
            notification.AllMessages[0].Message.ShouldEqual("aaaThe First Fieldaaa");
        }