Unit Testing DateTime.Now
Here is a handy class that will help with unit testing any references to DateTime.Now. public static class SystemTime{ public static Func<DateTime> Now = () => DateTime.Now(); public static Func<DateTime>…
Here is a handy class that will help with unit testing any references to DateTime.Now. public static class SystemTime{ public static Func<DateTime> Now = () => DateTime.Now(); public static Func<DateTime>…
Add a new .net core project to your existing solution. Add a NuGet package reference to Yarp.ReverseProxy. <ItemGroup> <PackageReference Include="Yarp.ReverseProxy" /> </ItemGroup> Configure the startup middleware by adding the following…
Configure Nginx Reverse Proxy To configure Nginx to act as a reverse proxy you will need to edit the default site config. sudo nano /etc/nginx/sites-available/default This is a boilerplate config…
Moving content from Windows to Linux/Nginx is simple and quick with the use of SFTP. I used WinSCP to connect to Ubuntu and transfer files to be hosted by Nginx.…