public UserActorTest(ITestOutputHelper output, ClusterContextFixture clusterContextFixture)
     : base(output: output)
 {
     clusterContextFixture.Initialize(Sys);
     _clusterContext = clusterContextFixture.Context;
     _client         = new MockClient(_clusterContext);
 }
        public async Task UserCreateAndLoad()
        {
            // Arrange
            await _client.PrepareUserAsync();

            _client.ChannelRef.WithNoReply().Close();
            var loginCredential = _client.LoginCredential;
            var registerTime    = _client.UserContext.Data.RegisterTime;
            await Task.Delay(100);

            // Act
            _client = new MockClient(_clusterContext);
            await _client.PrepareUserAsync(loginCredential);

            // Assert
            Assert.Equal(registerTime, _userContext.Data.RegisterTime);
        }