feat(postit): allow username updates in profile flow

This commit is contained in:
Paul Schneider 2026-10-07 12:26:02 +01:00
commit 05e35d0677
Signed by: notazof
GPG key ID: AD4B9B545FBD7D12
5 changed files with 39 additions and 10 deletions

View file

@ -1,3 +1,4 @@
using Yavsc.Abstract.Identity;
using PostIt.ViewModels;
namespace PostIt.Tests;
@ -66,11 +67,23 @@ public class HomePageProviderFlowTests
Assert.NotNull(vm.RefreshCommand);
}
[Fact]
public void ProfileUpdateRequest_allows_username_updates()
{
var request = new ProfileUpdateRequest
{
UserName = "alice.new"
};
Assert.Equal("alice.new", request.UserName);
}
[Fact]
public void UserProfilePage_can_save_profile_values()
{
var vm = new UserProfilePageViewModel
{
UserName = "alice.new",
FullName = "Alice Example",
Address = "14 rue de l’Érable",
DedicatedGoogleCalendar = "calendar-123",