public OutcomeContext AddNewOutcomeContext(Outcome outcome, WarningContext warningContext)
        {
            Contract.Requires(outcome != null);
            Contract.Ensures(Contract.Result <OutcomeContext>() != null);

            throw new NotImplementedException();
        }
Esempio n. 2
0
        public OutcomeContext AddNewOutcomeContext(Outcome outcome, WarningContext context)
        {
            if (!this.IsValid)
            {
                return(null);
            }

            var result = this.model.NewOutcomeContext(outcome);

            result.WarningContext = context;
            return(result);
        }
Esempio n. 3
0
        protected override void Render(HtmlTextWriter writer)
        {
            if (WarningContext.Count == 0)
            {
                return;
            }

            if (this.Attributes["class"] == null)
            {
                this.Attributes.Add("class", CssClasses.Warning);
            }

            this.Text = WarningContext.GetAll(Format, Seperator, KeyFilter);
            base.Render(writer);
        }
 public OutcomeContext AddNewOutcomeContext(Outcome outcome, WarningContext warningContext)
 {
     return(underlying.AddNewOutcomeContext(outcome, warningContext));
 }