Ejemplo n.º 1
0
        public void Tests(string input, string expectedResult)
        {
            //Arrange
            IAccountNumberParsingService accountNumberParsingService = new AccountNumberParsingService();

            //Act
            string actualResult = accountNumberParsingService.ParseOcrInput(input);

            //Assert
            actualResult.Should().BeEquivalentTo(expectedResult, because: "The parsing service should return the correctly parsed OCR input");
        }
Ejemplo n.º 2
0
        public void Tests(string input, string expectedResult)
        {
            //Arrange
            IAccountNumberParsingService    accountNumberParsingService    = new AccountNumberParsingService();
            IAccountNumberValidationService accountNumberValidationService = new AccountNumberValidationService();

            IOcrInputReaderService ocrInputReaderService = new OcrInputReaderService(accountNumberParsingService, accountNumberValidationService);

            //Act
            string actualResult = ocrInputReaderService.VerifyOcrInputAccountingForMistakes(input);

            //Assert
            actualResult.Should().BeEquivalentTo(expectedResult, because: "The file reader service should return the account number along with information on validity of legibility and checksum");
        }