-
RecordVisitors–code coverage–part 3
Now I have to do some code coverage . The easy way is to test the web application – doing an integration test. Use this as a starting point: https://docs.microsoft.com/en-us/aspnet/core/test/integration-tests?view=aspnetcore-5.0 I have 2 kind of tests: HappyPath -when all is working ok – and TestErrors – when it is not. The code for all working…
-
RecordVisitors–code–part 2
Now,after the idea is complete,let’s see the code. ( Yes,I know that TDD will be better … ) For the implementation : 1. Problems with the manual test- how to create a Fake User – see below the solution. 2. Problems of how to let user define his own data You can find the original…
-
RecordVisitors-idea–part1
It will be interesting to have a middleware of .NET Core that can record the name of the visitors in order to see what are the latest visitors of your site . What will be the uses ? See when the people has visiting your site See the latest visitors If you have a site…
-
Friday Links 426
How to Balance Hard Work and Pleasure for Happiness – The Atlantic sourcegen.dev – Source Generator Playground – @davidwengier Calling Bullshit – Case Studies How to Be Productive,Feel Less Overwhelmed,and Get Things Done Use YARP to host client and API server on a single origin to avoid CORS What are Mixins,and how do you use…
-
Dotnet diagnostics / open telemetry on CI in 6 simple steps
Prerequisites : Having Jaeger / Zipkin for visualization . The easy way for installing Jaeger is to have Jaeger all in one ( either via Docker,either run on PC) Step 1: Modify the csproj to add this Optional : To see the RSCG files,add also Step 2: 2.1 If ASP.NET Core app,add the following…
-
Friday Links 425
Main demo | RevoGrid – Excel like data grid component cloudcommunity/Free-Certifications: Curated list of free courses & certifications Multi-Tenant Architecture. Software Architect s library | by Alex Gurbych | Feb,2021 | Level Up Coding A simple template for Onion Architecture with .NET 5 | by David Pereira | Feb,2021 | Medium Microservices Architecture. Software Architect…
-
Open Tracing instrumentation for running process
Open tracing allows you to trace calls between (micro)services . It has also calls for HTTP and Sql. For a ASP.NET Core application the code is at follows ( for exporting at Jaeger,for example): This code was made with <PackageReference Include=”OpenTelemetry” Version=”1.1.0-beta1″ /> <PackageReference Include=”OpenTelemetry.Instrumentation.AspNetCore” Version=”1.0.0-rc3″ /> <PackageReference Include=”OpenTelemetry.Exporter.Jaeger” Version=”1.1.0-beta1″ /> <PackageReference Include=”OpenTelemetry.Extensions.Hosting” Version=”1.0.0-rc3″ />…
-
Friday Links 424
Cloud-Native learning resources for .NET developers | .NET Blog Agile OrgDesign – Deliverables aren’t Outcomes REST APIs for Microservices? Beware! – CodeOpinion Colecii – dotnet | Microsoft Docs domesticmouse/vscode-typer: Adding automagic typing to VSCode How to Balance Hard Work and Pleasure for Happiness – The Atlantic An Experiment With Making Integration Tests Easier to Write…
-
Public activities–RPA presentation and podcast invite
I have had a presentation about RPA at ADCES.,at meetup: https://www.meetup.com/Bucharest-A-D-C-E-S-Meetup/ The presentation is at https://ignatandrei.github.io/Presentations/PowerAutomateDesktopprez.html#1 Also,I have been invited to a podcast by Alexandru Petrescu,https://www.linkedin.com/in/askingalexander . You can find the podcast here: https://www.youtube.com/watch?v=5pP-brzPA70
-
Friday Links 423
Dynamic Queries with Expressions Trees in C# – Michael’s Coding Spot System UIcons FallenMax/a18n: Automated I18n solution for JavaScript/TypeScript/React Sigberg s six laws of documentation | by Thorbj�rn Sigberg | Medium MoienTajik/AspNetCore-Developer-Roadmap: Roadmap to becoming an ASP.NET Core developer in 2021 Limiting Work In Progress � all things considered… A Tour of the .NET Functions…
I am ok , you are ok