Menu
Richardson Maturity Model in REST API

Richardson Maturity Model in REST API

The Richardson Maturity Model is a model developed by Leonard Richardson in 2008 to categorize and rank the architectural maturity of web APIs based on their adherence to REST (Representational State Transfer) principles. REST is a style of software architecture for distributed systems, often used in web services development.

C# – Convert HTML to PDF using pdf.co API

C# – Convert HTML to PDF using pdf.co API

Let’s see how we can use pdf.co API to convert the same HTML using C# (.net)

C# Unit test a Repository class using a Seeded InMemoryDatabase

C# Unit test a Repository class using a Seeded InMemoryDatabase

If you wanted to unit test a Repository that uses a DbContext with seeded data, you can use the InMemoryDatabase.

C# querying the EWS Managed API from as asp.net core web api

C# querying the EWS Managed API from as asp.net core web api

Let see how we can integrate the Microsoft Exchange (AKA EWS) and access the information.

C# – Unit testing a AutoMapper Profile mappings

C# – Unit testing a AutoMapper Profile mappings

When you use AutoMapper to map our objects, and AutoMapper profiles are the way we do it, it encapsulates a lot of business logic in some cases. But we need to make sure the business logic gets unit tested.

C# – Unit testing a Mediator handler that has AutoMapper Profile

C# – Unit testing a Mediator handler that has AutoMapper Profile

As part of my Mediator handler, I have multiple dependencies injected they are DbContext, IMapper. But remember, as part of the application initialisation we have AutoMapper Profile registration automatically. But it’s not the case with Unit Testing we need to register the dependencies or mock them. Therefore we need to add the Profile to our IMapper initialisation.

Writing Twilio service to send SMS (TXT) Australian mobile number

Writing Twilio service to send SMS (TXT) Australian mobile number

In one of my previous blog post I have put together a service to verify valid Australian mobile number, in this post I will share the service I use to send SMS (TXT) messages to mobile numbers. 

Writing Twilio service to validate Australian mobile number

Writing Twilio service to validate Australian mobile number

Send a SMS (TXT)/Voice message to given mobile number, for SMS (TXT) based  verification will receive a 4 digits number which they will enter back. and that number get validated

Entity Framework Core (EF Core) group daily data to monthly

Entity Framework Core (EF Core) group daily data to monthly

I had to create a chart from Chart JS to display, displaying data with Chart JS is super easy, but getting the data from the server is bit tricky unless you are a SQL expert (well not me :)). Below query will group it by month.

Creating a C#/ .net service to do Google Places API look up

Creating a C#/ .net service to do Google Places API look up

This code snippet demonstrates how you can create a C# .net service to do Google Places API lookup API

Using the string value of a C# enum value in a case statement

Using the string value of a C# enum value in a case statement

Enums much better way compared to hard coding the string. Collection of code snippets using Enums with c# switch statment

Creating a Azure Mobile Service (also using OData) to create a generic BaseController for CURD operations.

Creating a Azure Mobile Service (also using OData) to create a generic BaseController for CURD operations.

Creating a Azure Mobile Service (also using OData) to create a generic BaseController for CURD operations.

Server side pagination in ASP.NET controler that supports any entity

Server side pagination in ASP.NET controler that supports any entity

Pagination on server side is a very common scenario. So thought about creating helper.

Validation on server side using Fluent Validation

Validation on server side using Fluent Validation

When it comes to ASP.NET, it much easier to do the validation using FluentValidation.

Simple audit using Override Entity Framework SaveChanges()

Simple audit using Override Entity Framework SaveChanges()

Overriding Entity Framework SaveChanges() method so you can populate the entity ModifiedBy,ModifiedOn, CreatedBy, CreatedOn properties

Setting up Azure Active Directory Single Sign On on a ASP.NET (.NET 4.5) web app using OpenIdConnect (Cookies based)

Setting up Azure Active Directory Single Sign On on a ASP.NET (.NET 4.5) web app using OpenIdConnect (Cookies based)

Setting up Azure Active Direactory Single Sign On on a ASP.NET (.NET 4.5) web app using OpenIdConnect (Cookies based)

Setting up AutoMapper in asp .net core app using AutoMapperProfile configuration

Setting up AutoMapper in asp .net core app using AutoMapperProfile configuration

This small tutorial will teach you how to set up AutoMapper, using AutoMapperProfile configuration

Configure ASP.NET MVC application routes for Anguler SPA

Configure ASP.NET MVC application routes for Anguler SPA

Angular 2 html routing with ASP.NET Core MVC application giving a 500 error when you do a browser refresh (F5), probably this tutorial if for you.

Configuring the AutoMapper property binding behaviour

Configuring the AutoMapper property binding behaviour

You will have to change the way the properties get mapped most of the time, as it not always one-to-one.