Example #1
0
 public static TestOccurrenceField WithFields(
     // Fields
     bool id                    = false,
     bool name                  = false,
     bool status                = false,
     bool ignored               = false,
     bool duration              = false,
     bool runOrder              = false,
     bool muted                 = false,
     bool currentlyMuted        = false,
     bool currentlyInvestigated = false,
     bool href                  = false,
     bool ignoreDetails         = false,
     bool details               = false,
     bool logAnchor             = false,
     // Group Fields
     TestField test                   = null,
     MuteField mute                   = null,
     BuildField build                 = null,
     BuildField firstFailed           = null,
     BuildField nextFixed             = null,
     TestOccurrencesField invocations = null,
     TestRunMetadataField metadata    = null
     )
 {
     return(new TestOccurrenceField
     {
         // Fields
         Id = id,
         Name = name,
         Status = status,
         Ignored = ignored,
         Duration = duration,
         RunOrder = runOrder,
         Muted = muted,
         CurrentlyMuted = currentlyMuted,
         CurrentlyInvestigated = currentlyInvestigated,
         Href = href,
         IgnoreDetails = ignoreDetails,
         Details = details,
         LogAnchor = logAnchor,
         // Group Fields
         Test = test,
         Mute = mute,
         Build = build,
         FirstFailed = firstFailed,
         NextFixed = nextFixed,
         Invocations = invocations,
         Metadata = metadata
     });
 }
Example #2
0
 public static TestsField WithFields(
     // Fields
     bool count        = true,
     bool nextHref     = false,
     bool prevHref     = false,
     bool href         = false,
     bool defaultValue = false,
     // Group Field
     TestField test = null)
 {
     return(new TestsField
     {
         //Fields
         Count = count,
         NextHref = nextHref,
         PrevHref = prevHref,
         Href = href,
         Default = defaultValue,
         //Group Fields
         Test = test
     });
 }