public void ApproveCard()
        {
            //Arrange
            var card = new Card()
            {
                Id = 1
            };
            var cardRequestRepository = new MockCardRequestRepository()
                                        .MockApproveCard(card);
            var cardRequestService = new CardRequestService(cardRequestRepository.Object, null);

            //Act
            var approvedCard = cardRequestService.ApproveCard(1, card);

            //Assert
            Assert.IsNotNull(approvedCard);
        }
        public void GetById()
        {
            //Arrange
            var card = new Card()
            {
                Id = 1
            };
            var cardRequestRepository = new MockCardRequestRepository()
                                        .MockGetById(card);
            var cardRequestService = new CardRequestService(cardRequestRepository.Object, null);

            //Act
            var cardById = cardRequestService.GetById(1);

            //Assert
            Assert.IsNotNull(cardById);
        }
        public void Reject()
        {
            //Arrange
            var card = new Card()
            {
                Id = 1
            };
            var cardRequestRepository = new MockCardRequestRepository()
                                        .MockReject(card);
            var cardRequestService = new CardRequestService(cardRequestRepository.Object, null);

            //Act
            var rejectedCard = cardRequestService.Reject(1);

            //Assert
            Assert.IsNotNull(rejectedCard);
        }
        public void GetActiveCards()
        {
            //Arrange
            var cards = new List <Card>()
            {
                new Card()
                {
                    Id = 1
                }
            };
            var cardRequestRepository = new MockCardRequestRepository()
                                        .MockGetActiveCards(cards);
            var cardRequestService = new CardRequestService(cardRequestRepository.Object, null);

            //Act
            var activeCards = cardRequestService.GetActiveCards();

            //Assert
            Assert.IsNotNull(activeCards);
        }