Ejemplo n.º 1
0
        public void SetUp()
        {
            _checkScannerService = new Mock <ICheckScannerService>();
            _emailService        = new Mock <IEmailCommunication>();
            _configuration       = new Mock <IConfigurationWrapper>();
            _configuration.Setup(mocked => mocked.GetConfigIntValue("CheckScannerBatchSuccessTemplateId")).Returns(123);
            _configuration.Setup(mocked => mocked.GetConfigIntValue("CheckScannerBatchFailureTemplateId")).Returns(456);

            _fixture = new CheckScannerBatchProcessor(_checkScannerService.Object, _emailService.Object, _configuration.Object);
        }
        public void SetUp()
        {
            _checkScannerService = new Mock<ICheckScannerService>();
            _emailService = new Mock<IEmailCommunication>();
            _configuration = new Mock<IConfigurationWrapper>();
            _configuration.Setup(mocked => mocked.GetConfigIntValue("CheckScannerBatchSuccessTemplateId")).Returns(123);
            _configuration.Setup(mocked => mocked.GetConfigIntValue("CheckScannerBatchFailureTemplateId")).Returns(456);

            _fixture = new CheckScannerBatchProcessor(_checkScannerService.Object, _emailService.Object, _configuration.Object);
        }