public void ShouldReturnNullIfNotFound()
        {
            // Arrange
            var id   = Guid.NewGuid();
            var list = new List <Card>
            {
                new Card {
                    Id = Guid.NewGuid()
                },
                new Card {
                    Id = Guid.NewGuid()
                },
                new Card {
                    Id = Guid.NewGuid()
                },
            };

            // SUT
            var sut = new CardRepository(list);

            // Act
            var card = sut.GetBy(id);

            // Assert
            Assert.Null(card);
        }
        public void ShouldReturnCard()
        {
            // Arrange
            var id   = Guid.NewGuid();
            var list = new List <Card>
            {
                new Card {
                    Id = Guid.NewGuid()
                },
                new Card {
                    Id = id
                },
                new Card {
                    Id = Guid.NewGuid()
                },
            };

            // SUT
            var sut = new CardRepository(list);

            // Act
            var card = sut.GetBy(id);

            // Assert
            Assert.Equal(id, card.Id);
        }