Mark Oliver's World

28 'CSharp' posts

All 28 posts tagged with 'CSharp' are displayed here, click a link to see the full post


Forcing Tests To Run In A Specific Order Using MSTest

By default, MSTest will run all tests in alphabetical order based on their name.

This means, you should be able to know when a test will run in relation to another.

For example, if you prefix your tests with TX...


Upgrading From IdentityServer Version 2 To IdentityServer Version 4

I have recently needed to upgrade from IdentityServer v2 to IdentityServer v4.

This was relatively painless (upgrade via nuget), but I had these 3 issues:

1 - PublicOrigin is no longer exposed, need to add it manually:

              //Add in PublicOrigin as it has been removed in v4 of Identity...


Using ObjectDumper Breathed New Life Into A Complex System

For a previous article on Testing in Dotnet, I wrote about the package ObjectDumper.Net

I use this for lots of things, but it is great to add to a test to really see what an object looks like.

So it was obvious for me that I...


My Thoughts On Using GitHub CoPilot

Recently I enabled GitHub Co-Pilot in Visual Studio.

This was following a talk about AI with Silicon South.

I have heard loads about it, but had no...


Querying Console Output In Your Tests

Hello, and welcome to my blog post for December 16th of the C# Advent Calendar 2023.

Organised by Matthew Groves.

I wont tell you about me, but if you are interested, check out my About me page.

Last year in one...


Explicitly Including A DLL In A Project

Have you ever seen this kind of error on running your code:

            System.IO.FileNotFoundException: Could not load file or assembly 'XXXXXXXXXXXXXXX, Version=X.Y.Z.0, Culture=neutral, PublicKeyToken=yyyyyyyy'. The system cannot find the file specified. File name: 'XXXXXXXXXXXXXXX, Version=X.Y.Z.0, Cul...


Intermittent Playwright Exception

I have been getting this error intermittently in our Azure Devops based Playwright tests using a headless Chrome browser:

            Microsoft.Playwright.PlaywrightException: net::ERR_NETWORK_CHANGED Stack Trace:    at Microsoft.Playwright.Transport.Connection.InnerSendMessageToServerAsync[T](String g...


Testing In Dotnet

Hello, and welcome to my blog post for December 15th of the .NET Advent Calendar 2022.

Organised by Dustin Morris Gorski on Twitter.

I wont tell you about me, but if you are interested, check out my About me page....


Why Byte Arrays Are A Bad Idea When Dealing With Large Data

Hello, and welcome to my blog post for December 7th of the C# Advent Calendar 2022.

Organised by Matthew Groves & Calvin Allen.

I wont tell you about me, but if you are interested, check out my [...


Remote Pair Programming

In order to get upto speed at my new job, I have suggested I Pair program with some of the developers.
This will help me get upto speed, help me learn the systems, the processes, the people and the tools.

It seemed like the existing engineers were hesitant, but that was quickly overcome. I believe...


Speeding Up The Initial Load

My site is a static WASM one, there is no server host involved.
Therefore in order to display the dynamic content of the site, all the "code" must be downloaded to the browser, and then run within the browser to generate the content.

This is a downside to Blazor WASM, and the clever peeps at Micros...


Setting Up A Sitemap

Google works best for your website if you give it a sitemap.
This is a full list of all the Uri's of all the pages on your site.

There are several ways to do this, and Google Help will show you how.

So I need one for...


Adding Category Pages

Now we have tags on posts, it is easy to see all related posts, but there is no way to access a list of the known categories/tags.

So lets add one.

What do we need?

A new page "Category List" needs to be created.
This page will query the blogpostpopulater...


Job Search 2021 _ A Live Programming Test

It's a new day, so its time for another interview, and this time its a live programming test!

I thought it was going to be setup like a "pair programming" concept, but turned out it was more of a "watch while you code", while talking about your decisions out loud with the occasional question thrown...


Tagging Posts

As the number of posts are growing on this site, I am finding it harder and harder to find related items. I have already added a Search in, but sometimes, I want to see all my "Job Search" posts together, and not rely on them having the exact words I search for....


Highlighting Search Terms

From my search page, you can search all the blog posts on this site.

As part of the results, I show a few characters either side of the found search term in the post.
It can also show multiple sections of a single post if multiple matches are found. e.g.

[Search for "Blazor"](/Search/b...


Job Search 2021 _ Another Programming Test _ Feedback

I wrote about this programming test recently for a job interview.

Since it has been submitted, I have had some feedback, which I would like to follow up with.
Unfortunately, the company decided that they would not give me the opportunity to talk with t...


Adding A Site Search

As the site gets more and more posts, its important to have the capability to search on the site.

Now there are several ways to do this:


Making This Site More Accessible

I want to make this site as accessible for everyone as I can.

            What is Web Accessibility Web accessibility means that websites, tools, and technologies are designed and developed so that people with disabilities can use them. More specifically, people can:  * perceive, understand, navigate, and...


Customising The Blazor Loading Page

I sent this tweet out the other day :