Skip to content

Finchett.com

A brain dump

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

All posts by Stephen

  • Home
  • Inserting Records with Identity Fields and Retrieving IDs for Future Use
9 January 2024

Inserting Records with Identity Fields and Retrieving IDs for Future Use

By Stephen in Development Tag identity, sql

Introduction With SQL databases, a frequent task is to insert a record into a table that includes an Identity Field. Following this insertion, retrieving this newly generated ID for subsequent…

Read More

8 January 2024

Understanding GetRequiredService in .NET: Enhancing Dependency Injection

By Stephen in Development Tag c#, dependency-injection, dotnet

Introduction: In the world of .NET, Dependency Injection (DI) has emerged as a key practice, significantly enhancing how developers handle dependencies in their applications. At the heart of this practice…

Read More

8 January 2024

Strongly Typed Configuration in .NET8

By Stephen in Development Tag c#, configuration, dotnet

Introduction In the latest iteration of .NET, specifically .NET 8, there's an enhanced way to manage configuration settings. This approach involves using strongly typed classes and the IOptions pattern, a…

Read More

8 January 2024

API Mocking with Mockoon

By Stephen in Development Tag apis, mock, mockoon, testing

Introduction API mocking is an essential part of modern web development, allowing developers to simulate server responses and streamline the testing process. Mockoon is one of the simplest and most…

Read More

8 January 2024

The Power of Back-End-for-Front-End (BFF) in Decoupling Front-End and Back-End Services

By Stephen in Development Tag patterns

Introduction The Back-End-for-Front-End (BFF) pattern is a key architectural approach in modern web development. It is used for its ability to separate front-end and back-end services. This article explores how…

Read More

7 January 2024

Checking IP/Ports are Open for Business

By Stephen in Infrastructure Tag ports, tcp, telnet

Checking IP/Ports are open is easy enough. You can use various tools depending on your operating system: On Windows: Use telnet <IP address> <port> in the Command Prompt. If telnet…

Read More

7 January 2024

Network Policies in Kubernetes with Rancher

By Stephen in Infrastructure Tag kubectl, kubernetes, rancher

Introduction Kubernetes has become the cornerstone of container orchestration, offering solutions for managing complex containerised applications. However, with great power comes great responsibility, particularly when it comes to network security.…

Read More

7 January 2024

NUnit’s Coolest Feature – Data-Driven Tests

By Stephen in Development Tag c#, data-driven, nunit, unit-testing

Introduction The single most powerful feature of NUnit, is arguably its extensive support for Data-Driven Tests through attributes like , , and . This feature allows for parameterised tests, enabling…

Read More

6 January 2024

Using Moq to Verify your Logging is working

By Stephen in Development Tag c#, moq, nunit, unit-testing

Introduction Mocking ILogger<T> for testing methods that use logging in C# can be done effectively using the Moq library. The ILogger<T> interface is commonly used in .NET applications for logging…

Read More

6 January 2024

NUnit’s Assert.That

By Stephen in Development Tag c#, nunit, unit-testing

Introduction Nunit's Assert.That is a versatile assertion method. It's part of NUnit's constraint-based assert model, which is more flexible and powerful than the traditional assert model. This approach allows for…

Read More

Posts pagination

1 2 3 4 … 32

Search

Table Of Contents
  1. Introduction
  2. Basic Usage
  3. Examples
    • 1. Equality Check
    • 2. Null Check
    • 3. Collection Checks
    • 4. String Checks
    • 5. Type Checking
    • 6. Exception Checking
      • 7. Property Checking
  4. Advanced Constraints
  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.