コード例 #1
0
        public void Arrange()
        {
            _fixture = new Fixture();
            _fixture.Customize(new IncentiveApplicationCustomization());

            _mockDomainRepository = new Mock <IIncentiveApplicationDomainRepository>();

            _sut = new SubmitIncentiveApplicationCommandHandler(_mockDomainRepository.Object);
        }
コード例 #2
0
        public void Arrange()
        {
            _fixture = new Fixture();
            _fixture.Customize(new IncentiveApplicationCustomization());

            _mockDomainRepository     = new Mock <IIncentiveApplicationDomainRepository>();
            _mockUlnValidationService = new Mock <IUlnValidationService>();
            _mockUlnValidationService.Setup(x => x.UlnAlreadyOnSubmittedIncentiveApplication(It.IsAny <long>())).ReturnsAsync(false);

            _sut = new SubmitIncentiveApplicationCommandHandler(_mockDomainRepository.Object, _mockUlnValidationService.Object);
        }