public async Task PostGetProfileWithImageId() { var profile = CreateRandomProfile(); await AddProfile(profile); var fetchedProfile = await _chatServiceClient.GetProfile(profile.Username); Assert.Equal(profile, fetchedProfile); }
public async Task PostGetProfile() { var profilePictureId = CreateRandomUsername(); var profile = new UserProfile { Username = CreateRandomUsername(), FirstName = "Georges", LastName = "Haddad", ProfilePictureId = profilePictureId }; await _chatServiceClient.AddProfile(profile); _profilesToCleanup.Add(profile); var fetchedProfile = await _chatServiceClient.GetProfile(profile.Username); Assert.Equal(profile, fetchedProfile); }