From 8136d4f2cf82df36fa0c378735fd562adb5524ea Mon Sep 17 00:00:00 2001 From: "Matthew D. Groves" Date: Thu, 28 Sep 2023 10:24:57 -0400 Subject: [PATCH] added picsum links so broken image links don't show up in UI --- Conduit/Conduit.Tests/TestHelpers/Data/UserHelper.cs | 2 +- .../TestHelpers/Dto/ViewModels/UpdateUserSubmitModelHelper.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Conduit/Conduit.Tests/TestHelpers/Data/UserHelper.cs b/Conduit/Conduit.Tests/TestHelpers/Data/UserHelper.cs index 2169f986da..d83ce1f0b6 100644 --- a/Conduit/Conduit.Tests/TestHelpers/Data/UserHelper.cs +++ b/Conduit/Conduit.Tests/TestHelpers/Data/UserHelper.cs @@ -21,7 +21,7 @@ public static User CreateUser( username ??= "user-" + Path.GetRandomFileName(); email ??= "email-" + Path.GetRandomFileName() + "@example.net"; bio ??= "Lorem Ipsum bio " + Path.GetRandomFileName(); - image ??= "http://example.net/" + Path.GetRandomFileName() + ".jpg"; + image ??= $"https://picsum.photos/seed/{Path.GetRandomFileName()}/400.jpg"; password ??= "ValidPassword1#-" + Path.GetRandomFileName(); var authService = AuthServiceHelper.Create(); diff --git a/Conduit/Conduit.Tests/TestHelpers/Dto/ViewModels/UpdateUserSubmitModelHelper.cs b/Conduit/Conduit.Tests/TestHelpers/Dto/ViewModels/UpdateUserSubmitModelHelper.cs index e021760876..f0695f4fb5 100644 --- a/Conduit/Conduit.Tests/TestHelpers/Dto/ViewModels/UpdateUserSubmitModelHelper.cs +++ b/Conduit/Conduit.Tests/TestHelpers/Dto/ViewModels/UpdateUserSubmitModelHelper.cs @@ -17,7 +17,7 @@ public static UpdateUserSubmitModel Create( username ??= "username-" + random.String(10); bio ??= "lorem ipsum bio " + random.String(256); email ??= "email-" + random.String(10) + "@example.net"; - image ??= "https://example.net/" + random.String(10) + ".jpg"; + image ??= $"https://picsum.photos/seed/{Path.GetRandomFileName()}/400.jpg"; password ??= "ValidPassword1!" + random.String(10); var model = new UpdateUserSubmitModel