Skip to content

Commit

Permalink
EHD-1411: Reduce code in Core project: Remove / simplify some unused …
Browse files Browse the repository at this point in the history
…testing code
  • Loading branch information
jamesgriff committed Nov 20, 2024
1 parent 99c1f58 commit ad4f79b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 31 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,12 @@ namespace GenderPayGap.WebUI.Tests.TestHelpers
public static class UiTestHelper
{

private const string Url = "https://localhost/";
public static IContainer DIContainer;
public static Mock<IBackgroundJobsApi> MockBackgroundJobsApi;

public static Uri Uri => new Uri(Url, UriKind.Absolute);

public static T GetController<T>(long userId = 0, RouteData routeData = null, params object[] dbObjects)
where T : Controller
{
DIContainer = BuildContainerIoC(dbObjects);
IContainer DIContainer = BuildContainerIoC(dbObjects);

//Create Inversion of Control container
Startup.ContainerIoC = DIContainer;
Expand Down Expand Up @@ -140,7 +136,7 @@ public static T GetController<T>(long userId = 0, RouteData routeData = null, pa
responseMock.SetupGet(x => x.Cookies).Returns(responseCookies.Object);

//Mock session
var uri = new UriBuilder(Uri);
var uri = new UriBuilder(new Uri("https://localhost/", UriKind.Absolute));

//Mock HttpContext
var httpContextMock = new Mock<HttpContext>();
Expand Down

0 comments on commit ad4f79b

Please sign in to comment.