コード例 #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
     });
 }
コード例 #2
0
        public static TestField WithFields(
            // Fields
            bool id   = false,
            bool name = false,
            bool href = false,
            // Group fields
            MutesField mutes = null,
            InvestigationsField investigations   = null,
            TestOccurrencesField testOccurrences = null
            )
        {
            return(new TestField
            {
                // Fields
                Id = id,
                Name = name,
                Href = href,

                // Group Fields
                Mutes = mutes,
                Investigations = investigations,
                TestOccurrences = testOccurrences
            });
        }
コード例 #3
0
ファイル: BuildField.cs プロジェクト: tidharmor/TeamCitySharp
        public static BuildField WithFields(
            // Fields
            bool id                  = false,
            bool taskId              = false,
            bool buildTypeId         = false,
            bool buildTypeInternalId = false,
            bool number              = false,
            bool status              = false,
            bool state               = false,
            bool running             = false,
            bool composite           = false,
            bool failedToStart       = false,
            bool personal            = false,
            bool percentageComplete  = false,
            bool branchName          = false,
            bool defaultBranch       = false,
            bool unspecifiedBranch   = false,
            bool history             = false,
            bool pinned              = false,
            bool href                = false,
            bool webUrl              = false,
            bool queuePosition       = false,
            bool limitedChangesCount = false,
            bool artifactsDirectory  = false,
            bool statusText          = false,
            bool startEstimate       = false,
            bool waitReason          = false,
            bool startDate           = false,
            bool finishDate          = false,
            bool queuedDate          = false,
            bool settingsHash        = false,
            bool currentSettingsHash = false,
            bool modificationId      = false,
            bool chainModificationId = false,
            bool usedByOtherBuilds   = false,
            // Group fields
            LinksField links                                     = null,
            BuildTypeField buildType                             = null,
            CommentField comment                                 = null,
            TagsField tags                                       = null,
            CommentField pinInfo                                 = null,
            UserField user                                       = null,
            ProgressInfoField running_info                       = null,
            CommentField canceledInfo                            = null,
            TriggeredField triggered                             = null,
            LastChangesField lastChanges                         = null,
            ChangesField changes                                 = null,
            RevisionsField revisions                             = null,
            RevisionField versionedSettingsRevision              = null,
            BuildChangesField artifactDependencyChanges          = null,
            AgentField agent                                     = null,
            CompatibleAgentsField compatibleAgents               = null,
            TestOccurrencesField testOccurrences                 = null,
            ProblemOccurrencesField problemOccurrences           = null,
            ArtifactsField artifacts                             = null,
            PropertiesField properties                           = null,
            PropertiesField resultingProperties                  = null,
            EntriesField attributes                              = null,
            StatisticsField statistics                           = null,
            DatasField metadata                                  = null,
            BuildSnapshotDependenciesField snapshotDependencies  = null,
            BuildArtifactDependenciesField artifactDependencies  = null,
            ArtifactDependenciesField customArtifactDependencies = null,
            ItemsField replacementIds                            = null,
            RelatedField related                                 = null,
            CommentField statusChangeComment                     = null,
            RelatedIssuesField relatedIssues                     = null

            )
        {
            return(new BuildField
            {
                // Fields
                Id = id,
                TaskId = taskId,
                BuildTypeId = buildTypeId,
                BuildTypeInternalId = buildTypeInternalId,
                Number = number,
                Status = status,
                State = state,
                Running = running,
                Composite = composite,
                FailedToStart = failedToStart,
                Personal = personal,
                PercentageComplete = percentageComplete,
                BranchName = branchName,
                DefaultBranch = defaultBranch,
                UnspecifiedBranch = unspecifiedBranch,
                History = history,
                Pinned = pinned,
                Href = href,
                WebUrl = webUrl,
                QueuePosition = queuePosition,
                LimitedChangesCount = limitedChangesCount,
                ArtifactsDirectory = artifactsDirectory,
                StatusText = statusText,
                StartEstimate = startEstimate,
                WaitReason = waitReason,
                StartDate = startDate,
                FinishDate = finishDate,
                QueuedDate = queuedDate,
                SettingsHash = settingsHash,
                CurrentSettingsHash = currentSettingsHash,
                ModificationId = modificationId,
                ChainModificationId = chainModificationId,
                UsedByOtherBuilds = usedByOtherBuilds,
                // GroupFields
                Links = links,
                BuildType = buildType,
                Comment = comment,
                Tags = tags,
                PinInfo = pinInfo,
                User = user,
                Running_info = running_info,
                CanceledInfo = canceledInfo,
                Triggered = triggered,
                LastChanges = lastChanges,
                Changes = changes,
                Revisions = revisions,
                VersionedSettingsRevision = versionedSettingsRevision,
                ArtifactDependencyChanges = artifactDependencyChanges,
                Agent = agent,
                CompatibleAgents = compatibleAgents,
                TestOccurrences = testOccurrences,
                ProblemOccurrences = problemOccurrences,
                Artifacts = artifacts,
                Properties = properties,
                ResultingProperties = resultingProperties,
                Attributes = attributes,
                Statistics = statistics,
                Metadata = metadata,
                SnapshotDependencies = snapshotDependencies,
                ArtifactDependencies = artifactDependencies,
                CustomArtifactDependencies = customArtifactDependencies,
                ReplacementIds = replacementIds,
                Related = related,
                StatusChangeComment = statusChangeComment,
                RelatedIssues = relatedIssues
            });
        }