public async Task ThenEndDateShouldntBeValidatedIfNotSupplied() { MockApprenticeshipCoreValidator.Setup(v => v.MapOverlappingErrors(It.IsAny <GetOverlappingApprenticeshipsQueryResponse>())) .Returns(new Dictionary <string, string>()); var apprenticeship = new ApprenticeshipViewModel { EndDate = new DateTimeViewModel() }; var result = await EmployerCommitmentOrchestrator.ValidateApprenticeship(apprenticeship); CollectionAssert.AreEqual(new Dictionary <string, string>(), result); }