public void TestInitialise()
        {
            this._mockAccountNumberRepository = new Mock<IAccountNumberRepository>();
            this._mockOCRService = new Mock<IOCRService>();

            this._driver = new KataOCRDriver(this._mockAccountNumberRepository.Object, this._mockOCRService.Object);
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: AndrewGibson100/CodeKatas
        static void Main(string[] args)
        {
            var driver = new KataOCRDriver(new FileSystemAccountNumberRepository(), new OCRService());

            foreach (var accountNumber in driver.ReadAccountNumbers())
            {
                Console.WriteLine(accountNumber);
            }

            driver.WriteAccountNumbers();

            Console.Read();
        }