Skip to content

Commit

Permalink
CON-2505 Direct EmployerHome extension method to accounts home
Browse files Browse the repository at this point in the history
  • Loading branch information
ben1stone-leftdfe committed Oct 26, 2020
1 parent 86cc44b commit 94ce5b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void DeleteApprentice_BuildsPathCorrectly(string accountHashedId, string
public void EmployerHome_BuildsPathCorrectly(string accountHashedId)
{
var url = _fixture.Sut.EmployerHome(accountHashedId);
Assert.AreEqual($"{_fixture.UsersLink}accounts/{accountHashedId}/teams", url);
Assert.AreEqual($"{_fixture.AccountsLink}accounts/{accountHashedId}/teams", url);
}

[Test, AutoData]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static string DeleteApprentice(this ILinkGenerator linkGenerator,

public static string EmployerHome(this ILinkGenerator linkGenerator, string accountHashedId)
{
return linkGenerator.UsersLink($"accounts/{accountHashedId}/teams");
return linkGenerator.AccountsLink($"accounts/{accountHashedId}/teams");
}
}
}

0 comments on commit 94ce5b6

Please sign in to comment.