public void GenerateUrl_WithUrlSafeValues_ReplacesPlaceholders() { // Arrange string url = "https://domain.com/" + ViewCompetentAuthorityUserRoute.PlaceholderUserId; string userId = "user7"; ViewCompetentAuthorityUserRoute route = new ViewCompetentAuthorityUserRoute(url); route.CompetentAuthorityUserID = userId; // Act string result = route.GenerateUrl(); // Assert Assert.Equal("https://domain.com/user7", result); }