Skip to content

Finchett.com

A brain dump

  • Home
  • Blog
  • About
  • Kubernetes
  • SQL Server
  • Contact
  • Newsletter
  • Finchett.com Privacy Policy

Tag c#

  • Home
  • Exploring the Microsoft Feature Management Library in .NET
3 December 2023

Exploring the Microsoft Feature Management Library in .NET

By Stephen in Development Tag c#

Introduction In the fast-paced world of software development, the ability to control and manage features dynamically is crucial. The Microsoft Feature Management library, a part of the .NET ecosystem, provides…

Read More

3 December 2023

Understanding the yield Keyword in C#

By Stephen in Development Tag c#

Introduction In C#, the yield keyword is used in the context of iterator methods. It plays a crucial role in customising the iteration behavior of a collection or series of…

Read More

3 December 2023

Enabling Foreach Functionality in C# Classes

By Stephen in Development Tag c#

Introduction The foreach loop in C# provides a simple, clean way to iterate over collections. To make a custom class compatible with the foreach loop, the class needs to implement…

Read More

3 December 2023

Understanding Init-Only Properties in C#

By Stephen in Development Tag c#

Introduction C# 9.0 introduced a new feature called init-only properties, enhancing the language's support for immutable data structures. These properties allow for more concise and safe object initialisations, and are…

Read More

3 December 2023

Advanced Use of Async Cancellation Tokens in C#

By Stephen in Development Tag async, c#

Introduction In C# asynchronous programming, cancellation tokens are a core feature used to manage the lifetime of asynchronous operations. They provide a cooperative cancellation mechanism, allowing tasks to be cancelled…

Read More

3 December 2023

Understanding Async in C#

By Stephen in Development Tag async, c#

Introduction Asynchronous programming is a critical aspect of modern software development, particularly in I/O-bound, database and network-bound operations. In C#, async and await keywords are used to simplify the writing…

Read More

3 December 2023

Another Time Machine

By Stephen in Development Tag c#

Introduction In a previous article / blog post (I can never decide between the two terms), I wrote about creating a Time Provider by implementing an interface and injecting it…

Read More

3 December 2023

Unit Testing Mininal APIs

By Stephen in Development Tag c#, minimal-api

Introduction With the advent of .NET 6, Minimal APIs have become a popular way to build lightweight, efficient web services in C#. However, the simplicity of Minimal APIs also raises…

Read More

3 December 2023

Building a Customer API with .NET Minimal API Framework

By Stephen in Development Tag c#, minimal-api

Introduction The .NET 6 Minimal API framework provides a streamlined approach to build lightweight APIs. Here's a basic example of how you could create a Customer API with endpoints to…

Read More

3 December 2023

The Time Machine

By Stephen in Development Tag c#

Introduction In C#, dealing with time-dependent logic can be challenging, especially when it comes to unit testing. Hardcoding DateTime.Now in your business logic makes it difficult to test various scenarios.…

Read More

Posts pagination

1 … 8 9 10 11

Search

Table Of Contents
  1. Introduction
  2. Implementing a TimeProvider
  3. Writing Unit Tests with a Mock TimeProvider
  4. Advantages of Using TimeProvider
  5. Conclusion

Recent Posts

  • Running Proxmox on a Raspberry Pi
  • Honouring .gitignore settings
  • Faker.Net: Data Generation for Developers
  • Exploring MiniExcel: A Lightweight .NET Library for Excel Operations
  • File Path Size Does Matter

apis (4) async (8) c# (103) devops (4) dotnet (5) esp32 (11) git (11) hardware (6) joins (6) kubectl (4) kubernetes (13) logging (4) nanoframework (6) network (8) NFS shares (5) nunit (8) patterns (34) performance (7) pi (8) playwright (7) plugins (8) proxmox (13) serilog (4) setup (16) sql (46) testing (9) tools (6) tslint (4) typescript (23) unit-testing (9) webapi (4)

Archives

Get the Newsletter

Categories

  • Development
  • Infrastructure
  • Other
  • Plugins
  • Raspberry Pi
  • wordpress

Recent Posts

  • Running Proxmox on a Raspberry Pi
  • Honouring .gitignore settings
  • Faker.Net: Data Generation for Developers
  • Exploring MiniExcel: A Lightweight .NET Library for Excel Operations
  • File Path Size Does Matter

Proudly powered by WordPress| Theme: SpicePress Dark by SpiceThemes

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .

Finchett.com
Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Strictly Necessary Cookies

Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.