public void Submit_ServiceReturnsCorrectApplicationId_ReturnsApplicationId()
        {
            var application = new SellerApplicationBuilder()
                              .WithSelectiveInvoiceDiscountProduct()
                              .Build();

            var result = _sut.Submit(application);

            result.Should().Be(2);

            _selectInvoiceServiceMock.Verify(
                x => x.SubmitApplicationFor(It.IsAny <string>(), It.IsAny <decimal>(), It.IsAny <decimal>()), Times.Once);
        }
        public void Submit_ServiceReturnsApplicationId_ReturnsApplicationId(bool success, int?applicationId, int externalResult)
        {
            _applicationResultMock.SetupProperty(x => x.Success, success);
            _applicationResultMock.SetupProperty(x => x.ApplicationId, applicationId);

            var application = new SellerApplicationBuilder()
                              .WithBusinessLoansProduct()
                              .Build();

            var result = _sut.Submit(application);

            result.Should().Be(externalResult);

            _businessLoansServiceMock.Verify(
                x => x.SubmitApplicationFor(It.IsAny <CompanyDataRequest>(), It.IsAny <LoansRequest>()), Times.Once);
        }