public async Task TotalCountAsync_WithSearchToken_ShouldReturnUsersCount() { // Arrange FitStoreDbContext database = this.Database; DatabaseHelper.SeedData(database); database.Users.Add(new User { Id = "Id", UserName = "******" }); database.SaveChanges(); IAdminUserService adminUserService = new AdminUserService(database); // Act int result = await adminUserService.TotalCountAsync("user"); // Assert result.Should().Be(10); }