public void Arrange() { _autoFixture = new Fixture(); _mergeRequest = new MergeRequest(); _mergeRequest.StartNewRequest(); }
public void StartNewMergeRequest() { var mergeRequest = new MergeRequest(); mergeRequest.StartNewRequest(); _sessionService.Set(_mergeOrganisationsSessionKey, mergeRequest); }
public void And_SessionIsNull_ThenMapViewModel() { var mergeRequest = new MergeRequest(); mergeRequest.StartNewRequest(); _mockMergeSessionService.Setup(ms => ms.GetMergeRequest()) .Returns(mergeRequest); var viewResult = MergeController.MergeOverview() as ViewResult; var viewModel = viewResult.Model as MergeOverviewViewModel; viewModel.PrimaryEpaoId.Should().BeNull(); viewModel.PrimaryEpaoName.Should().BeNull(); viewModel.SecondaryEpaoId.Should().BeNull(); viewModel.SecondaryEpaoName.Should().BeNull(); viewModel.SecondaryEpaoEffectiveTo.Should().BeNull(); }