Added Unit Tests

This commit is contained in:
Nikolaj Geisle
2021-09-30 15:51:21 +02:00
parent c4e14d183d
commit 22ca290884
3 changed files with 113 additions and 7 deletions

View File

@@ -5,9 +5,7 @@ using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Features;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Newtonsoft.Json;
using Umbraco.Cms.Core;
@@ -167,9 +165,7 @@ namespace Umbraco.Cms.Web.BackOffice.Controllers
}
public IEnumerable<UserData> GetUserData()
{
var variablesFeature = HttpContext.Features.Get<IServerVariablesFeature>();
return _userDataService.GetUserData();
}
/// <summary>