public void Should_update_player_name() { const string room = "global"; const string newName = "New Player Name"; var persistenceService = new ChatPersistenceServiceWrapper(); var player = TestData.CreateRegularPlayer <Player_VM>(); var connectionId = Guid.NewGuid().ToString(); persistenceService.TrackConnection(player, connectionId); persistenceService.TrackRoomJoin(player.MembershipId, connectionId, room); persistenceService.TrackPlayerNameChange(player.MembershipId, newName); Assert.That(persistenceService.GetUsersInRoom(room).Where(x => x.Name == newName), Has.Exactly(1).Items); }