public SelectiveInvoiceDiscountHandlerTests()
        {
            _sut = new SelectiveInvoiceDiscountHandler(_selectInvoiceServiceMock.Object);

            var sellerApplicationMock = new Mock <ISellerApplication>();

            sellerApplicationMock.SetupProperty(p => p.Product, new SelectiveInvoiceDiscount());
            sellerApplicationMock.SetupProperty(p => p.CompanyData, new SellerCompanyData());
            _sellerApplication = sellerApplicationMock.Object;
        }
Esempio n. 2
0
        public BusinessLoansHandlerTests()
        {
            _sut = new BusinessLoansHandler(_businessLoansServiceMock.Object);

            _result.SetupProperty(p => p.ApplicationId, 3);
            _result.SetupProperty(p => p.Success, true);

            var sellerApplicationMock = new Mock <ISellerApplication>();

            sellerApplicationMock.SetupProperty(p => p.Product, new BusinessLoans());
            sellerApplicationMock.SetupProperty(p => p.CompanyData, new SellerCompanyData());
            _sellerApplication = sellerApplicationMock.Object;
        }
        public ConfidentialInvoiceDiscountHandlerTests()
        {
            _sut = new ConfidentialInvoiceDiscountHandler(_confidentialInvoiceServiceMock.Object);

            _result.SetupProperty(p => p.ApplicationId, 1);
            _result.SetupProperty(p => p.Success, true);

            var sellerApplicationMock = new Mock <ISellerApplication>();

            sellerApplicationMock.SetupProperty(p => p.Product, new ConfidentialInvoiceDiscount());
            sellerApplicationMock.SetupProperty(p => p.CompanyData, new SellerCompanyData());
            _sellerApplication = sellerApplicationMock.Object;
        }