public async Task GetUserByEmailShouldReturnFromContext() { var user = new User { Id = "AA" }; _tableClientService.QueryAsync <User>("Email eq '*****@*****.**'", 1).Returns(new[] { user }.AsQueryable()); var result = await _storageService.GetUserByEmailAsync("*****@*****.**"); Assert.AreEqual(result.Id, "AA"); }