Inheritance: IUserEventObserver
示例#1
0
        public async Task Test_UserLogin_ExistingUser_Succeed()
        {
            await _client.PrepareUserAsync("test", "1234", "CreatedUser");

            _client.ChannelRef.WithNoReply().Close();
            await Task.Delay(100);

            _client = new MockClient(_clusterContext);
            await _client.PrepareUserAsync("test", "1234");

            Assert.Equal("CreatedUser", _client.UserContext.Data.Name);
        }
示例#2
0
 public UserLoginActorTest(ClusterContextFixture clusterContext)
 {
     clusterContext.Initialize(Sys);
     _clusterContext = clusterContext.Context;
     _client         = new MockClient(_clusterContext);
 }