public async Task GetLogins_Test() { var store = new ElasticUserStore <ElasticUser, ElasticRole>(_nestClient, new ElasticOptions { UsersIndex = _userIndex }); var user = new ElasticUser { UserName = "******", PasswordHash = "phash", Logins = new List <ElasticUserLogin> { new ElasticUserLogin(new UserLoginInfo("prov1", "key", "test1")), new ElasticUserLogin(new UserLoginInfo("prov2", "key2", "test1")) }, Email = new ElasticConfirmation("*****@*****.**") }; var logins = await store.GetLoginsAsync(user, NoCancellationToken); Assert.Equal(2, logins.Count); }