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); }
public UserLoginActorTest(ClusterContextFixture clusterContext) { clusterContext.Initialize(Sys); _clusterContext = clusterContext.Context; _client = new MockClient(_clusterContext); }