public void Arrange() { _fixture = new Fixture(); _fixture.Customize(new IncentiveApplicationCustomization()); _mockDomainRepository = new Mock <IIncentiveApplicationDomainRepository>(); _sut = new SubmitIncentiveApplicationCommandHandler(_mockDomainRepository.Object); }
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); }