Search Results for

    Show / Hide Table of Contents

    Class DeliverabilityExpectation

    Single expectation to evaluate against each selected entity

    Inheritance
    object
    DeliverabilityExpectation
    Implements
    IValidatableObject
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: mailslurp.Model
    Assembly: mailslurp.dll
    Syntax
    [DataContract(Name = "DeliverabilityExpectation")]
    public class DeliverabilityExpectation : IValidatableObject

    Constructors

    View Source

    DeliverabilityExpectation()

    Initializes a new instance of the DeliverabilityExpectation class.

    Declaration
    [JsonConstructor]
    protected DeliverabilityExpectation()
    View Source

    DeliverabilityExpectation(string, long, string, string, string)

    Initializes a new instance of the DeliverabilityExpectation class.

    Declaration
    public DeliverabilityExpectation(string name = null, long minCount = 0, string from = null, string to = null, string subject = null)
    Parameters
    Type Name Description
    string name

    Optional label for this expectation.

    long minCount

    Minimum number of matching messages required for this expectation to pass (required).

    string from

    Optional sender filter. Matching is case-insensitive contains against inbound sender/from values..

    string to

    Optional recipient filter. Matching is case-insensitive contains against recipient/to values..

    string subject

    Optional subject filter for INBOX scope tests. Ignored for PHONE scope tests..

    Properties

    View Source

    From

    Optional sender filter. Matching is case-insensitive contains against inbound sender/from values.

    Declaration
    [DataMember(Name = "from", EmitDefaultValue = true)]
    public string From { get; set; }
    Property Value
    Type Description
    string

    Optional sender filter. Matching is case-insensitive contains against inbound sender/from values.

    View Source

    MinCount

    Minimum number of matching messages required for this expectation to pass

    Declaration
    [DataMember(Name = "minCount", IsRequired = true, EmitDefaultValue = true)]
    public long MinCount { get; set; }
    Property Value
    Type Description
    long

    Minimum number of matching messages required for this expectation to pass

    View Source

    Name

    Optional label for this expectation

    Declaration
    [DataMember(Name = "name", EmitDefaultValue = true)]
    public string Name { get; set; }
    Property Value
    Type Description
    string

    Optional label for this expectation

    View Source

    Subject

    Optional subject filter for INBOX scope tests. Ignored for PHONE scope tests.

    Declaration
    [DataMember(Name = "subject", EmitDefaultValue = true)]
    public string Subject { get; set; }
    Property Value
    Type Description
    string

    Optional subject filter for INBOX scope tests. Ignored for PHONE scope tests.

    View Source

    To

    Optional recipient filter. Matching is case-insensitive contains against recipient/to values.

    Declaration
    [DataMember(Name = "to", EmitDefaultValue = true)]
    public string To { get; set; }
    Property Value
    Type Description
    string

    Optional recipient filter. Matching is case-insensitive contains against recipient/to values.

    Methods

    View Source

    ToJson()

    Returns the JSON string presentation of the object

    Declaration
    public virtual string ToJson()
    Returns
    Type Description
    string

    JSON string presentation of the object

    View Source

    ToString()

    Returns the string presentation of the object

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    String presentation of the object

    Overrides
    object.ToString()

    Implements

    IValidatableObject
    • View Source
    In this article
    Back to top See MailSlurp website for more information.