public async Task GetAllActiveUsersShouldReturnFromContext() { var user = new User { Id = "AA", Active = false }; var user2 = new User { Id = "BB", Active = true }; _tableClientService.QueryAsync <User>(3000).Returns(new[] { user, user2 }.AsQueryable()); var result = await _storageService.GetAllActiveUsersAsync(); Assert.AreEqual(result.Count, 1); Assert.AreEqual(result[0].Id, "BB"); }