public void ManageCardsPresenter_RegisterCard_Success()
        {
            //Arrange
            var mngCardsP = new Mock <IManageCardsPresenter>();

            //Act
            var result = new ManageCardsPresenter(new ServiceModel(), mngCardsP.Object);

            //Assert
            xunit.Assert.Equal(true, result.RegisterCard(new RequestRegisterCard()
            {
                CardId = 1
            }).Registered);
        }
        public void ManageCardsPresenter_RegisterCard_ThrowsException()
        {
            //Arrange
            var mngCardsP = new Mock <IManageCardsPresenter>();

            //Act
            var result = new ManageCardsPresenter(new ServiceModel(), mngCardsP.Object);

            //Assert
            xunit.Assert.Throws <InvalidOperationException>(() => result.RegisterCard(new RequestRegisterCard()
            {
                CardId = 0
            }));
        }