internal OutcomeDescriptionDTO(desc_variant_outcomesOutcome outcome)
        {
            Guard.Argument(outcome, nameof(outcome)).NotNull();
            Guard.Argument(outcome.id, nameof(outcome.id)).NotNull().NotEmpty();
            Guard.Argument(outcome.name, nameof(outcome.name)).NotNull().NotEmpty();

            Id          = outcome.id;
            Name        = outcome.name;
            Description = null;
        }
Esempio n. 2
0
        internal OutcomeDescriptionDTO(desc_variant_outcomesOutcome outcome)
        {
            Contract.Requires(outcome != null);
            Contract.Requires(!string.IsNullOrEmpty(outcome.id));
            Contract.Requires(!string.IsNullOrEmpty(outcome.name));

            Id          = outcome.id;
            Name        = outcome.name;
            Description = null;
        }