public async Task EndDate_IsMapped( EditEndDateViewModel request, IAuthenticationService authenticationService) { var mapper = new EditEndDateRequestMapper(authenticationService); var result = await mapper.Map(request); Assert.AreEqual(request.EndDate.Date, result.EndDate); }
public async Task UserInfo_IsMapped( EditEndDateViewModel request, IAuthenticationService authenticationService) { var mapper = new EditEndDateRequestMapper(authenticationService); var result = await mapper.Map(request); Assert.AreEqual(authenticationService.UserInfo.UserEmail, result.UserInfo.UserEmail); Assert.AreEqual(authenticationService.UserInfo.UserId, result.UserInfo.UserId); Assert.AreEqual(authenticationService.UserInfo.UserDisplayName, result.UserInfo.UserDisplayName); }