public void Output([NotNull] GetUserProfileOutput interactorOutput) { if (interactorOutput == null) { throw new ArgumentNullException(nameof(interactorOutput)); } viewModel = new MvcUserProfileViewModel( interactorOutput.AllowEdit, interactorOutput.UserId, interactorOutput.Roles, interactorOutput.Email, EmailUrlBuilder.GetUrl(interactorOutput.Email), interactorOutput.AvatarId, interactorOutput.Realname, interactorOutput.Firstname, interactorOutput.Lastname, interactorOutput.MemberSince.ToStringSwissDate(), interactorOutput.Slogan, interactorOutput.Education, interactorOutput.Experience, interactorOutput.MobilePhone, PhoneUrlBuilder.GetUrl(interactorOutput.MobilePhone), interactorOutput.WebsiteUrl, interactorOutput.TwitterHandle, TwitterUrlBuilder.GetUrl(interactorOutput.TwitterHandle), interactorOutput.FacebookId, FacebookUrlBuilder.GetUrl(interactorOutput.FacebookId), interactorOutput.SkypeId, SkypeUrlBuilder.GetUrl(interactorOutput.SkypeId)); }
public void GetUrl(string phoneNumber, string expectedUrl) { // Act var url = PhoneUrlBuilder.GetUrl(phoneNumber); // Assert url.Should().Be(expectedUrl); }