Example #1
0
 public override int GetHashCode()
 {
     return(HashCode.Combine(
                Type,
                Scope,
                Summary,
                Issues.AsEnumerable()));
 }
Example #2
0
            public async Task GetAllIssuesAsync_Should_Return_All_Issues_Test()
            {
                // Arrange
                var issuesToReturn = Issues.AsEnumerable();

                RepositoryWrapperMock
                .Setup(x => x.Issue.GetAllIssuesAsync())
                .ReturnsAsync(issuesToReturn);

                // Act

                var result = await ServiceUnderTest.GetAllIssuesAsync();

                // Assert

                var items = result.ToList();

                items.Count.Should().Be(3);
                items[0].IssueDescription.Should().Contain(IssueDtos[0].IssueDescription);
                items[1].IssueDescription.Should().Contain(IssueDtos[1].IssueDescription);
                items[2].IssueDescription.Should().Contain(IssueDtos[2].IssueDescription);
            }