public void Arrange() { Mediator.Send(Arg.Any <GetTempSupportRequest>()).Returns(new TempSupportRequest { FirstName = FIRST_NAME, Id = REQUEST_ID, Email = "*****@*****.**" }); sut = new ApplicationCompleteController(Mediator); }
public void Arrange() { _fixture = new Fixture(); _accountId = _fixture.Create <string>(); _accountLegalEntityId = _fixture.Create <string>(); _applicationId = Guid.NewGuid(); _legalEntitiesService = new Mock <ILegalEntitiesService>(); _applicationService = new Mock <IApplicationService>(); var application = new ApplicationModel(_applicationId, _accountId, _accountLegalEntityId, _fixture.CreateMany <ApplicationApprenticeshipModel>(2), false, false); _applicationService.Setup(x => x.Get(_accountId, _applicationId, false)).ReturnsAsync(application); _sut = new ApplicationCompleteController(_legalEntitiesService.Object, _applicationService.Object); }