Esempio n. 1
0
 public static TriggeredField WithFields(
     // Fields
     bool type        = false,
     bool date        = false,
     bool details     = false,
     bool displayText = false,
     bool rawValue    = false,
     // Group Fields
     BuildTypeField buildType   = null,
     UserField user             = null,
     BuildField build           = null,
     PropertiesField properties = null)
 {
     return(new TriggeredField
     {
         // Fields
         Type = type,
         Details = details,
         Date = date,
         DisplayText = displayText,
         RawValue = rawValue,
         // Group fields
         User = user,
         Build = build,
         BuildType = buildType,
         Properties = properties
     });
 }
 public static BuildChangeField WithFields(BuildField nextBuild = null, BuildField prevBuild = null)
 {
     return(new BuildChangeField
     {
         NextBuild = nextBuild,
         PrevBuild = prevBuild
     });
 }
 public static BuildSnapshotDependenciesField WithFields(BuildField buildField = null,
                                                         bool count            = true)
 {
     return(new BuildSnapshotDependenciesField
     {
         BuildField = buildField,
         Count = count,
     });
 }
Esempio n. 4
0
 public static BuildsField WithFields(BuildField buildField = null,
                                      bool count            = true)
 {
     return(new BuildsField
     {
         BuildField = buildField,
         Count = count,
     });
 }
Esempio n. 5
0
 public static BuildsField WithFields(BuildField buildField = null,
                                      bool count            = true, bool href = false)
 {
     return(new BuildsField
     {
         BuildField = buildField,
         Count = count,
         Href = href
     });
 }
Esempio n. 6
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
     });
 }
Esempio n. 7
0
 public static ProblemOccurrenceField WithFields(
     // Fields
     bool id       = false,
     bool type     = false,
     bool identity = false,
     bool href     = false,
     bool muted    = false,
     bool currentlyInvestigated = false,
     bool currentlyMuted        = false,
     bool details        = false,
     bool additionalData = false,
     bool logAnchor      = false,
     // Group Fields
     ProblemField problem = null,
     MuteField mute       = null,
     BuildField build     = null
     )
 {
     return(new ProblemOccurrenceField
     {
         // Fields
         Id = id,
         Type = type,
         Identity = identity,
         Href = href,
         Muted = muted,
         CurrentlyInvestigated = currentlyInvestigated,
         CurrentlyMuted = currentlyMuted,
         Details = details,
         AdditionalData = additionalData,
         LogAnchor = logAnchor,
         // Group Fields
         Problem = problem,
         Mute = mute,
         Build = build
     });
 }