public async Task GetAllAsync_ReturnsAllElements() { var numberOfItemsInDatabase = await _context.Attempts.AsQueryable().CountAsync(); var result = _service.GetAllAsync().ToListAsync(); result.Result.Count().Should().Be(numberOfItemsInDatabase); }