Binboo.Jira.Tests.Tests.Commands.LabelCommandTestCase.UpdateLabelsProxyCalls C# (CSharp) Method

UpdateLabelsProxyCalls() private static method

private static UpdateLabelsProxyCalls ( string key, string expectedLabels ) : IEnumerable>>
key string
expectedLabels string
return IEnumerable>>
        private static IEnumerable<Action<Mock<IJiraProxy>>> UpdateLabelsProxyCalls(string key, string expectedLabels)
        {
            Expression<Action<IJiraProxy>> updateIssueCall = jira => jira.UpdateIssue(
                                                                        key,
                                                                        It.IsAny<string>(),
                                                                        It.Is<IssueField[]>(customFields =>
                                                                                    customFields.Any(cf => cf.Id == CustomFieldId.Labels.Id && cf.Values.Length == 1 && cf.Values[0] == expectedLabels)));
            var proxyCalls = RetrieveIssueProxyCalls(key);
            proxyCalls.Add(ms2 => ms2.Setup(updateIssueCall));
            return proxyCalls.ToArray();
        }