public void GetIssuesByUser_CalledWithSearchFieldNone_ReturnsEmptyCollection()
        {
            // 1. Arrange
            var repository     = new IssuesRepository(new MyFakeIssuesContext());
            var userId         = 1;
            var searchField    = SearchField.None;
            var expectedLength = 0;
            // 2. Act
            var actual = repository.GetIssuesByUser(userId, searchField);

            // 3. Assert
            Assert.AreEqual(expectedLength, actual.Count());
        }
        public void GetIssuesByUser_CalledWithSearchFieldReporter_ReturnsThreeIssues()
        {
            // 1. Arrange
            var fakeContext    = new MyFakeIssuesContext();
            var repository     = new IssuesRepository(fakeContext);
            var userId         = 1;
            var searchField    = SearchField.Reporter;
            var expectedLength = 3;
            // 2. Act
            var actual = repository.GetIssuesByUser(userId, searchField);

            // 3. Assert
            Assert.AreEqual(expectedLength, actual.Count());
        }