Microservices Online Training using .NET Core

Microservices Using ASP.NET Core Web API, AI Integration, and Azure DevOps

This practical course teaches you to design, develop, secure, test, and deploy modern microservices with ASP.NET Core Web API. You will build distributed systems with SQL Server, REST, gRPC, RabbitMQ, Apache Kafka, Azure Service Bus, Ocelot, and YARP; integrate intelligent features using Azure AI and Microsoft Foundry; and manage source code and CI/CD through Azure DevOps, including Azure Repos and Azure Pipelines. Docker, Kubernetes, Azure hosting, xUnit, and Moq are also covered.

The course follows a hands-on e-commerce application with User, Product, Order, Payment, and Notification microservices. You will connect these services, add an AI-powered feature such as product-description generation or support-request summarization, and use Azure DevOps to take the solution from source control through automated builds, tests, and cloud deployment.

New Batch: Coming Soon

  • Duration: 4 Months
  • Course Fees: ₹12,000 INR or $150 USD

Contact Us

Note: Since this Microservices using ASP.NET Core Training Program is online, you may miss some classes due to office work, internet issues, electricity problems, medical issues, different time zones, or personal reasons. So, we will provide everyone with the Daily Recorded Sessions and Class Notes at the end of the class.

Detailed Course Syllabus

Chapter 1: Introduction to Microservices Architecture

In this chapter, you will learn the basic concepts of application architecture and understand the differences between monolithic and microservices architectures. Using an e-commerce example, you will explore how both architectures work, their advantages, challenges, and suitable use cases.

Topics to be Covered:
  • Application architecture and its layers
  • Types of applications
  • Monolithic architecture
  • Challenges of monolithic applications
  • Microservices architecture
  • Advantages and challenges of microservices
  • Monolithic vs. microservices architecture
  • Real-world microservices examples

Chapter 2: Clean Architecture in ASP.NET Core Web API

In this chapter, you will learn how Clean Architecture separates an application into independent layers to improve maintainability, testability, and flexibility. You will also build a Product Management System using ASP.NET Core Web API, Entity Framework Core, and SQL Server.

Topics to be Covered:
  • Introduction to Clean Architecture
  • Benefits of Clean Architecture
  • Domain Layer
  • Application Layer
  • Infrastructure Layer
  • Presentation Layer
  • Dependency Inversion Principle
  • Product Management System implementation

Chapter 3: Microservices Project Setup in Visual Studio

In this chapter, you will learn how to set up an e-commerce microservices solution in Visual Studio. You will understand the responsibilities of the main services, compare monorepo and polyrepo approaches, and organize each service using Clean Architecture with Domain, Application, Infrastructure, API, and Test projects. You will also plan a repository structure that supports collaborative development through Azure Repos.

Topics to be Covered:
  • Overview of an e-commerce microservices application
  • User, Product, Order, Payment, and Notification microservices
  • Recommended order of microservices development
  • Monorepo and Polyrepo development approaches
  • Creating the ECommerceSystem solution
  • Creating solution folders for each microservice
  • Creating Domain, Application, Infrastructure, API, and Test projects
  • Configuring project references
  • Organizing all microservices within a single Visual Studio solution
  • Planning the Azure Repos repository structure for the e-commerce solution

Chapter 4: Building User Microservice

In this chapter, you will learn how to design and implement a secure User Microservice using ASP.NET Core Web API, Clean Architecture, Entity Framework Core, ASP.NET Core Identity, and JWT authentication. The chapter covers the complete user lifecycle, including registration, login, email verification, password management, profiles, addresses, roles, refresh tokens, and secure API endpoints.

Topics to be Covered:
  • Overview and responsibilities of the User Microservice
  • User registration, login, roles, and authorization
  • JWT authentication and refresh token management
  • Implementing the Domain Layer with user-related entities and repository contracts
  • Implementing the Infrastructure Layer using ASP.NET Core Identity and EF Core
  • Implementing the Application Layer with DTOs and user services
  • Email verification and password management
  • User profile and address management
  • Building secure REST API endpoints
  • Configuring SQL Server, dependency injection, and JWT authentication

Chapter 5: Building Product Microservice

In this chapter, you will learn how to design and implement a Product Microservice using ASP.NET Core Web API, Clean Architecture, Domain-Driven Design, Entity Framework Core, and SQL Server. The chapter covers product catalog management, categories, inventory, pricing, discounts, images, reviews, search, filtering, pagination, and REST API development.

Topics to be Covered:
  • Overview and responsibilities of the Product Microservice
  • Product, category, image, discount, review, and inventory management
  • Implementing the Domain Layer with entities and repository contracts
  • Implementing the Infrastructure Layer using EF Core and SQL Server
  • Implementing the Application Layer with DTOs, services, and AutoMapper
  • Product search, filtering, pagination, and bulk retrieval
  • Pricing, discounts, stock availability, and inventory updates
  • Building REST APIs for products, categories, images, discounts, and reviews
  • Standardized API responses, validation, and error handling
  • Configuring dependency injection, database connection, and migrations

Chapter 6: Building Order Microservice

In this chapter, you will learn how to design and implement an Order Microservice using ASP.NET Core Web API, Clean Architecture, Entity Framework Core, SQL Server, Mapperly, and JWT authentication. The chapter covers cart management, order placement, status tracking, cancellations, returns, refunds, shipments, invoices, and communication with User, Product, Payment, and Notification microservices.

Topics to be Covered:
  • Overview and responsibilities of the Order Microservice
  • Cart management and order placement
  • Order status tracking and order history
  • Cancellation, return, refund, and shipment management
  • Implementing the Domain Layer with entities, enums, and repository contracts
  • Implementing the Infrastructure Layer using EF Core and SQL Server
  • Creating common contracts for inter-service communication
  • Implementing the Application Layer with DTOs, services, and Mapperly
  • Integrating with User, Product, Payment, and Notification microservices
  • Building secure REST APIs with standardized responses and JWT authentication

Chapter 7: Building Payment Microservice

In this chapter, you will learn how to design and implement a secure Payment Microservice using ASP.NET Core Web API, Clean Architecture, Entity Framework Core, SQL Server, Fluent Validation, and JWT authentication. The chapter covers payment initiation, gateway simulation, transaction tracking, retries, cancellations, webhooks, refunds, saved payment methods, and communication with the Order Microservice.

Topics to be Covered:
  • Overview and responsibilities of the Payment Microservice
  • Payment methods, gateway providers, and payment workflows
  • Implementing the Domain Layer with entities, enums, master data, and repositories
  • Implementing the Infrastructure Layer using EF Core and SQL Server
  • Payment initiation, status tracking, retry, and cancellation
  • Payment gateway simulation and webhook processing
  • Full, partial, and manual refund processing
  • Implementing the Application Layer with DTOs, services, and Fluent Validation
  • Building secure REST APIs for payments, refunds, and transaction history

Chapter 8: Building Notification Microservice

In this chapter, you will learn how to design and implement a scalable Notification Microservice using ASP.NET Core Web API, Clean Architecture, Entity Framework Core, SQL Server, SMTP, Twilio, and event-driven communication. The chapter covers multi-channel notifications, template management, scheduling, user preferences, retry handling, delivery tracking, and integration with other microservices.

Topics to be Covered:
  • Overview and responsibilities of the Notification Microservice
  • Email, SMS, and in-app notification channels
  • Event-driven notification processing
  • Notification templates and dynamic placeholder rendering
  • Scheduling, priorities, retries, and failure handling
  • User preferences, quiet hours, and Do Not Disturb settings
  • Implementing the Domain Layer with entities, enums, and repositories
  • Implementing the Infrastructure Layer using EF Core and SQL Server
  • Implementing the Application Layer with DTOs, services, handlers, and utilities
  • Email delivery using SMTP and SMS delivery using Twilio
  • Notification history, recipients, attachments, and delivery attempt logs

Chapter 9: Inter-Service Communication in Microservices

In this chapter, you will learn how microservices communicate to complete business operations. You will compare synchronous communication through REST and gRPC with asynchronous communication through message brokers and event streaming. RabbitMQ, Apache Kafka, and Azure Service Bus will be placed in the context of a practical e-commerce workflow.

Topics to be Covered
  • Introduction to Inter-Service Communication
  • Synchronous Communication using REST APIs and gRPC
  • Asynchronous Communication using Message Brokers
  • Synchronous vs. Asynchronous Communication
  • Choosing the Right Communication Strategy
  • Real-World E-Commerce Communication Workflow
  • Comparing RabbitMQ, Apache Kafka, and Azure Service Bus for messaging scenarios

Chapter 10: RabbitMQ for Microservices

In this chapter, you will learn the fundamentals of RabbitMQ and how it enables asynchronous communication in microservices. You will understand RabbitMQ architecture, install and configure RabbitMQ, explore the Management UI, and perform end-to-end messaging tests.

Topics to be Covered
  • Introduction to RabbitMQ
  • RabbitMQ Architecture and Core Components
  • Installing and Configuring RabbitMQ
  • RabbitMQ Management UI
  • Exchanges, Queues, Bindings, and Routing Keys
  • End-to-End Message Flow Testing
  • RabbitMQ Best Practices

Chapter 11: Implementing RabbitMQ in ASP.NET Core Microservices

In this chapter, you will integrate RabbitMQ into the e-commerce microservices application using ASP.NET Core Web API. You will implement publishers and consumers, build reusable messaging components, and establish asynchronous communication between microservices.

Topics to be Covered
  • Planning RabbitMQ Integration
  • Creating a Shared Messaging Library
  • Implementing Publishers and Consumers
  • Publishing and Consuming Events
  • Integrating RabbitMQ with ASP.NET Core
  • End-to-End Order Processing using RabbitMQ
  • Monitoring and Best Practices

Chapter 12: Apache Kafka Fundamentals for Microservices

In this chapter, you will learn how Apache Kafka supports event streaming and asynchronous communication between microservices. You will explore Kafka architecture, brokers, topics, partitions, consumer groups, and message retention, and understand when Kafka is more suitable than traditional message queues.

Topics to be Covered
  • Introduction to Apache Kafka and Event Streaming
  • Kafka vs. RabbitMQ: Use Cases and Key Differences
  • Kafka Architecture: Brokers, Topics, and Partitions
  • Producers, Consumers, Consumer Groups, and Offsets
  • Message Keys, Ordering, Retention, and Replay
  • Installing and Running Kafka Locally Using Docker
  • Creating Topics and Testing Producer / Consumer Messaging

Chapter 13: Implementing Apache Kafka in ASP.NET Core Microservices

In this chapter, you will integrate Apache Kafka into the e-commerce microservices solution using ASP.NET Core Web API and the Confluent.Kafka .NET client. You will build event publishers and background consumers, exchange order and inventory events, and test an end-to-end event-driven workflow.

Topics to be Covered
  • Planning Kafka Events for the E-Commerce Application
  • Installing and Configuring the Confluent.Kafka .NET Package
  • Creating Shared Event Contracts and Kafka Configuration
  • Implementing a Kafka Producer in the Order Microservice
  • Implementing a Kafka Consumer Using BackgroundService
  • Publishing and Consuming Order and Inventory Events
  • Managing Consumer Groups, Offsets, and Message Processing
  • Handling Failures, Retries, and Idempotent Consumers
  • Testing and Monitoring End-to-End Kafka Communication

Chapter 14: Saga Pattern in Microservices

In this chapter, you will learn how the Saga Pattern manages distributed transactions across multiple microservices without relying on distributed database transactions. You will explore choreography and orchestration approaches, understand compensating transactions, and learn how the Saga Pattern maintains data consistency in real-world business workflows.

Topics to be Covered
  • Introduction to the Saga Pattern
  • Distributed Transactions in Microservices
  • Compensating Transactions
  • Choreography vs. Orchestration
  • Saga Workflow in an E-Commerce Application
  • Saga Pattern Best Practices

Chapter 15: Implementing the Saga Pattern in ASP.NET Core

In this chapter, you will implement the Saga Pattern in the e-commerce microservices application using ASP.NET Core Web API and RabbitMQ. You will build the shared messaging infrastructure, implement the Orchestrator Service, integrate the Order, Product, and Notification microservices, and execute complete end-to-end distributed transactions.

Topics to be Covered
  • Building the Shared Messaging Infrastructure
  • Implementing the Orchestrator Service
  • Implementing the Saga Pattern in the Order Microservice
  • Implementing the Saga Pattern in the Product Microservice
  • Implementing the Saga Pattern in the Notification Microservice
  • End-to-End Saga Execution and Testing

Chapter 16: API Gateway in Microservices

In this chapter, you will learn the role of an API Gateway in a microservices architecture and understand how it acts as a Single-Entry Point for client requests. You will explore the responsibilities of an API Gateway, its benefits, and how it simplifies communication between clients and backend microservices.

Topics to be Covered
  • Introduction to API Gateway
  • Why API Gateway is Required in Microservices
  • Responsibilities of an API Gateway
  • API Gateway Request Flow
  • API Gateway vs Direct Client Communication
  • API Gateway Best Practices

Chapter 17: Implementing API Gateway using Ocelot

In this chapter, you will build an API Gateway using Ocelot in ASP.NET Core Web API. You will configure request routing, implement structured logging, secure the gateway using JWT authentication, and integrate common gateway features required in real-world microservices applications.

Topics to be Covered
  • Introduction to Ocelot API Gateway
  • Setting Up Ocelot in ASP.NET Core
  • Request Routing and Configuration
  • Structured Logging with Serilog
  • JWT Authentication in API Gateway
  • Testing the Ocelot API Gateway

Chapter 18: Advanced Features of API Gateway

In this chapter, you will implement advanced API Gateway capabilities to improve the performance, scalability, and reliability of your microservices. You will learn response aggregation, response compression, rate limiting, throttling, and response caching using Redis.

Topics to be Covered
  • Response Aggregation
  • Response Compression
  • Rate Limiting and Throttling
  • Response Caching using Redis
  • Performance and Scalability Best Practices
  • End-to-End API Gateway Testing

Chapter 19: Implementing API Gateway using YARP

In this chapter, you will learn how to build an API Gateway using Microsoft’s YARP (Yet Another Reverse Proxy). You will configure routing, request transformations, load balancing, and compare YARP with Ocelot to understand when each gateway solution is most appropriate.

Topics to be Covered
  • Introduction to YARP
  • YARP Architecture and Features
  • Setting Up YARP in ASP.NET Core
  • Routing and Request Transformation
  • YARP vs Ocelot
  • Building a Production-Ready API Gateway

Chapter 20: Service Discovery in Microservices

In this chapter, you will learn the concept of Service Discovery and understand why it is one of the fundamental building blocks of a microservices architecture. You will explore how Service Discovery enables dynamic communication between microservices without relying on hardcoded IP addresses or URLs. You will also learn about service registration, service lookup, health checking, client-side and server-side discovery, and the most popular Service Discovery platforms used in modern distributed systems.

Topics to be Covered
  • Introduction to Service Discovery
  • Why Service Discovery is Required in Microservices
  • Problems with Hardcoded Service Endpoints
  • Core Components of Service Discovery
  • Service Registration and Deregistration
  • Service Health Checks
  • Client-Side Service Discovery
  • Server-Side Service Discovery
  • How Service Discovery Works
  • Popular Service Discovery Tools
  • Service Discovery Best Practices

Chapter 21: Implementing Service Discovery using Consul

In this chapter, you will learn how to implement Service Discovery using HashiCorp Consul in an ASP.NET Core Web API Microservices architecture. You will install and configure Consul, register and deregister microservices automatically, implement health checks, create a reusable Service Discovery library, and integrate the API Gateway with Consul for dynamic service discovery.

Topics to be Covered
  • Introduction to Consul
  • Installing and Configuring Consul
  • Running Consul in Development Mode
  • Understanding the Consul Web UI
  • Creating a Shared Service Discovery Library
  • Configuring Consul in ASP.NET Core
  • Automatic Service Registration
  • Automatic Service Deregistration
  • Implementing Health Check Endpoints
  • Consul Configuration using appsettings.json
  • Dynamic Service Resolution
  • Testing Service Registration and Discovery

Chapter 22: Implementing Service Discovery using Eureka and Steeltoe

In this chapter, you will learn how to implement Service Discovery using Netflix Eureka and Steeltoe in ASP.NET Core Web API applications. You will configure a Eureka Server, integrate Steeltoe into ASP.NET Core microservices, register services automatically, discover services dynamically, and integrate Eureka with the Ocelot API Gateway for seamless service communication.

Topics to be Covered
  • Introduction to Eureka
  • Understanding Steeltoe
  • Installing and Running Eureka Server
  • Configuring Eureka Server
  • Installing Steeltoe Packages
  • Configuring Eureka in ASP.NET Core
  • Automatic Service Registration
  • Service Discovery using Steeltoe
  • Integrating Eureka with Ocelot API Gateway
  • Dynamic Service Resolution
  • Testing Eureka Service Discovery

Chapter 23: Load Balancer in Microservices

In this chapter, you will learn the purpose of Load Balancing in Microservices and understand how it distributes incoming requests across multiple service instances to improve scalability, availability, and performance. You will explore various load balancing algorithms, understand their advantages, and learn how Load Balancing works together with Service Discovery in modern cloud-native applications.

Topics to be Covered
  • Introduction to Load Balancer
  • Why Load Balancing is Required
  • Problems without Load Balancing
  • Benefits of Load Balancing
  • Load Balancing Algorithms
  • Health Checks
  • Horizontal Scaling
  • High Availability
  • Load Balancing and Service Discovery
  • Best Practices for Load Balancing

Chapter 24: Load Balancing using Ocelot API Gateway and Consul

In this chapter, you will implement Load Balancing in an ASP.NET Core Microservices architecture using the Ocelot API Gateway together with Consul Service Discovery. You will configure Ocelot to discover healthy service instances dynamically, apply load balancing algorithms, integrate Serilog for request tracing, and verify traffic distribution across multiple service instances.

Topics to be Covered
  • Ocelot and Consul Integration
  • Dynamic Service Discovery
  • Configuring Consul for Ocelot
  • Configuring Ocelot for Load Balancing
  • Round Robin Load Balancing
  • Least Connection Load Balancing
  • Health-Based Routing
  • Correlation ID Middleware
  • Serilog Integration
  • Hosting Multiple Service Instances
  • Testing Load Balancing using Ocelot

Chapter 25: Load Balancing using YARP API Gateway and Consul

In this chapter, you will learn how to implement dynamic Load Balancing using Microsoft’s YARP API Gateway together with Consul Service Discovery. You will configure YARP routes and clusters, dynamically populate service destinations from Consul, implement runtime configuration refresh, and understand how YARP performs high-performance request routing and load balancing across healthy microservice instances.

Topics to be Covered
  • Introduction to YARP Load Balancing
  • YARP Architecture
  • YARP and Consul Integration
  • Configuring reverseproxy.json
  • Dynamic Destination Resolution
  • Consul Configuration Filter
  • Service Resolver Implementation
  • Runtime Configuration Refresh
  • Round Robin Load Balancing
  • Request Routing Pipeline
  • Testing YARP Load Balancing
  • Comparing Ocelot and YARP Load Balancing

Chapter 26: gRPC in ASP.NET Core Microservices

In this chapter, you will learn how gRPC enables high-performance communication between microservices. You will understand the architecture of gRPC, Protocol Buffers, HTTP/2, strongly typed contracts, and streaming. You will then implement gRPC in an ASP.NET Core Microservices application by creating shared contracts, building gRPC services, integrating gRPC clients, and enabling fast service-to-service communication within an e-commerce system.

Topics to be Covered
  • Introduction to gRPC
  • gRPC vs REST
  • gRPC Architecture
  • Protocol Buffers (.proto Files)
  • HTTP/2 and Protobuf
  • Creating Shared gRPC Contracts
  • Implementing gRPC Services
  • Consuming gRPC Services
  • Service-to-Service Communication using gRPC
  • Testing gRPC Communication

Chapter 27: CQRS in ASP.NET Core Microservices

In this chapter, you will learn the CQRS (Command Query Responsibility Segregation) pattern and understand how separating read and write operations improves maintainability, scalability, and performance. You will implement CQRS using MediatR in an ASP.NET Core Microservices application by creating commands, queries, handlers, and integrating them into the Order Service.

Topics to be Covered
  • Introduction to CQRS
  • Commands and Queries
  • CQRS Architecture
  • Understanding MediatR
  • Creating Commands and Queries
  • Implementing Command Handlers
  • Implementing Query Handlers
  • Integrating MediatR with ASP.NET Core
  • Implementing CQRS in the Order Service
  • Testing CQRS Implementation

Chapter 28: GraphQL in ASP.NET Core Microservices

In this chapter, you will learn GraphQL as an alternative API approach for modern applications that require flexible data retrieval. You will understand how GraphQL solves the limitations of REST APIs and implement GraphQL using Hot Chocolate in the API Gateway. You will build queries and mutations, aggregate data from multiple microservices, and expose a single GraphQL endpoint for frontend applications.

Topics to be Covered
  • Introduction to GraphQL
  • REST vs GraphQL
  • GraphQL Architecture
  • GraphQL Schema
  • Queries and Mutations
  • Introduction to Hot Chocolate
  • Configuring GraphQL in ASP.NET Core
  • Implementing Queries
  • Implementing Mutations
  • GraphQL in the API Gateway
  • Testing GraphQL APIs

Chapter 29: Circuit Breaker in ASP.NET Core Microservices

In this chapter, you will learn the Circuit Breaker pattern, one of the most important resilience patterns used in Microservices. You will understand why cascading failures occur, how Circuit Breakers protect services from unhealthy dependencies, and how they improve system stability. You will then implement Circuit Breakers in an ASP.NET Core Microservices application using .NET 8 resilience libraries to protect both REST and gRPC service-to-service communication.

Topics to be Covered
  • Introduction to Circuit Breaker Pattern
  • Cascading Failures in Microservices
  • Circuit Breaker States (Closed, Open, and Half-Open)
  • Types of Failures Observed by Circuit Breakers
  • Why Circuit Breakers are Essential in Microservices
  • .NET 8 Resilience Libraries
  • Configuring Circuit Breaker Options
  • Implementing Circuit Breakers for REST Services
  • Implementing Circuit Breakers for gRPC Services
  • Testing Circuit Breaker Behavior

Chapter 30: CORS in ASP.NET Core Microservices

In this chapter, you will learn how Cross-Origin Resource Sharing (CORS) enables secure communication between browser-based applications and ASP.NET Core Microservices. You will understand the Same-Origin Policy (SOP), browser preflight requests, CORS headers, and why CORS is commonly configured at the API Gateway. You will then implement CORS in an ASP.NET Core Microservices application by configuring policies, enabling middleware, and testing browser-based communication with an API Gateway.

Topics to be Covered
  • Introduction to Same-Origin Policy (SOP)
  • Understanding Cross-Origin Requests
  • Introduction to CORS
  • CORS Request and Response Headers
  • Preflight (OPTIONS) Requests
  • CORS in Microservices Architecture
  • API Gateway vs Individual Service CORS Configuration
  • Configuring CORS Policies in ASP.NET Core
  • Implementing CORS in the API Gateway
  • Testing CORS using an ASP.NET Core MVC and Angular Client

Chapter 31: OData in ASP.NET Core Microservices

In this chapter, you will learn how OData (Open Data Protocol) enables clients to query and shape data using standard URL query options. You will understand Entity Data Model (EDM), OData query options, and how OData differs from REST and GraphQL. You will then implement OData in an ASP.NET Core Microservices application by exposing queryable endpoints, configuring the OData pipeline, and building efficient APIs that support filtering, sorting, paging, field selection, and related data loading.

Topics to be Covered
  • Introduction to OData
  • Why OData is Needed
  • Core Building Blocks of OData
  • OData Query Options
  • OData vs REST
  • OData vs GraphQL
  • Configuring OData in ASP.NET Core
  • Exposing IQueryable from the Repository
  • Creating OData Query Layers
  • Implementing OData Endpoints
  • Testing OData Queries

Chapter 32: Retry Pattern Using Polly

In this chapter, you will learn the Retry resilience pattern and understand how it helps Microservices recover from transient failures such as temporary network issues, service timeouts, and downstream service unavailability. You will explore when retry should and should not be used, understand Polly and .NET 8 resilience libraries, and then implement a real-world retry mechanism in an ASP.NET Core Microservices application where one service communicates with another using HttpClient and Polly.

Topics to be Covered
  • Introduction to the Retry Pattern
  • Understanding Transient Failures
  • When to Retry and When Not to Retry
  • Retry Considerations for GET and POST Requests
  • Introduction to Polly
  • Polly Retry Strategy
  • Real-World Microservices Scenario
  • Creating Downstream and Client Services
  • Configuring Typed HttpClient
  • Implementing Retry Using Polly
  • Logging Retry Attempts
  • Testing Retry Behavior
  • Best Practices for Retry in Microservices

Chapter 33: Introduction to Git, Azure Repos, and Source Code Management

In this chapter, you will learn the fundamentals of Source Code Management (SCM), Version Control, Git, and Azure Repos in Azure DevOps. You will understand how Git manages local source history, how Azure Repos hosts shared repositories, and how to configure Git and Visual Studio for ASP.NET Core development.

Topics to be Covered
  • Introduction to Source Code Management (SCM)
  • Understanding Version Control
  • Introduction to Git and Azure Repos
  • Understanding Azure DevOps Organizations and Projects
  • Installing Git on Windows
  • Configuring Git with Visual Studio
  • Verifying the Git Installation

Chapter 34: Creating and Managing Git Repositories

In this chapter, you will learn how to create and manage Git repositories for ASP.NET Core Web API projects. You will understand local and remote repositories, initialize Git in Visual Studio, explore the Git workflow, and learn the core concepts required to track and manage source code changes effectively.

Topics to be Covered
  • Understanding Git Repositories
  • Local and Remote Repositories
  • Creating a Local Git Repository
  • Working Directory, Staging Area, and Repository
  • Git File States
  • Git Workflow and First Commit

Chapter 35: Branching, Commits, and Merging in Git

In this chapter, you will learn how Git enables safe and collaborative development through branching, commits, and merging. You will create feature branches, follow commit best practices, merge completed work into the main branch, and resolve merge conflicts using Visual Studio.

Topics to be Covered
  • Introduction to Git Branches
  • Feature Branch Workflow
  • Commit Best Practices
  • Writing Meaningful Commit Messages
  • Merging Branches
  • Resolving Merge Conflicts

Chapter 36: Working with Azure Repos and Remote Repositories

In this chapter, you will learn how Git and Azure Repos work together in real-world software development. You will create an Azure DevOps project and an Azure Repos Git repository, connect local repositories from Visual Studio, push and pull changes, and collaborate using branches and pull requests.

Topics to be Covered
  • Introduction to Azure Repos and Remote Repositories
  • Creating an Azure DevOps Organization and Project
  • Creating an Azure Repos Git Repository
  • Connecting a Local Git Repository to Azure Repos
  • Cloning, Pushing, Fetching, and Pulling Changes
  • Creating Feature Branches and Pull Requests
  • Branch Policies, Pull Request Reviews, and Permissions
  • Azure Repos and Visual Studio Collaboration Workflow

Chapter 37: Undoing Changes and Managing Git History

In this chapter, you will learn how to safely undo changes in Git and manage project history. You will understand when to use Git Revert and Git Reset, compare their behaviours, and learn the recommended practices for handling mistakes in both local and shared repositories.

Topics to be Covered
  • Understanding Git History
  • Introduction to Git Revert
  • Introduction to Git Reset
  • Soft Reset vs Hard Reset
  • Revert vs Reset
  • Best Practices for Undoing Changes

Chapter 38: Introduction to CI/CD and Workflow Overview

In this chapter, you will explore the complete CI/CD workflow with Azure DevOps. You will learn what Continuous Integration and Continuous Delivery mean, why automated builds and deployments matter, and how changes move from Azure Repos through Azure Pipelines to testing, publishing, and deployment to IIS. These fundamentals prepare you for later deployments to Azure App Service and AKS.

Topics to Cover:
  • What is Continuous Integration (CI)?
  • What is Continuous Delivery (CD)?
  • Difference Between Continuous Delivery and Continuous Deployment
  • Difference Between Manual Deployment and Automated Deployment
  • Why CI/CD is Important in ASP.NET Core Web API Projects
  • Understanding Azure DevOps and Azure Pipelines in the CI/CD Workflow
  • End-to-End Flow: Code → Azure Repos → Build → Test → Publish → Deploy
  • Benefits of CI/CD for Individual Developers and Teams
  • Common Real-Time Problems Solved by CI/CD

Chapter 39: Preparing the ASP.NET Core Web API Project for CI/CD

In this chapter, you will prepare a real ASP.NET Core Web API project for automation with Azure Repos and Azure Pipelines. You will understand project structure, Git basics, and how to connect the solution to an Azure Repos Git repository. You will also publish and deploy manually to IIS before automating the process.

Topics to Cover:
  • Creating and Running the ASP.NET Core Web API Project in Visual Studio
  • Understanding Build, Rebuild, Publish, and Deploy
  • Organizing the Project Structure for CI/CD
  • Connecting a Visual Studio Project to Azure Repos
  • Working with Branches in a Simple CI/CD Flow
  • Importance of .gitignore
  • Files and Folders That Should Not Be Committed to Azure Repos
  • Difference Between Development and Production Configuration
  • Manual Publish from Visual Studio
  • Manual Deployment to IIS on Local Machine

Chapter 40: Building a Continuous Integration Pipeline with Azure Pipelines

In this chapter, you will build your first real Continuous Integration pipeline using Azure Pipelines. You will use an Azure Repos Git repository and a YAML pipeline to automatically restore packages, build, test, and publish an ASP.NET Core Web API whenever selected branches or pull requests are updated.

Topics to Cover:
  • Introduction to Azure Pipelines
  • Understanding Pipelines, Stages, Jobs, Steps, Tasks, and Agents
  • Microsoft-Hosted Agents vs. Self-Hosted Agents
  • Understanding the azure-pipelines.yml File
  • Creating the First YAML CI Pipeline with Azure Repos
  • Configuring Branch Triggers and Pull Request Validation
  • Setting Up the Required .NET SDK Version
  • Restoring NuGet Packages Automatically
  • Building the ASP.NET Core Web API Project
  • Running xUnit Tests in the CI Pipeline
  • Publishing Test Results and Build Artifacts
  • Reviewing Pipeline Runs, Logs, and Failures

Chapter 41: Managing Secrets and Configuration in CI/CD

In this chapter, you will learn how to securely manage secrets and configuration in Azure Pipelines. You will use pipeline variables, secret variables, variable groups, and protected resources to keep credentials out of source control and YAML files while handling Development, Test, and Production configurations.

Topics to Cover:
  • What Are Secrets in CI/CD?
  • Why Credentials Must Not Be Stored in Code or YAML
  • Creating Pipeline Variables and Secret Variables
  • Using Azure Pipelines Variable Groups
  • Managing Service Connections and Access Permissions
  • Introduction to Azure Key Vault Integration
  • Using Secrets and Variables in YAML Pipelines
  • Azure DevOps Environments and Approvals
  • Using appsettings.json for Different Environments
  • Understanding appsettings.Development.json and appsettings.Production.json
  • Using Secure Configuration During Deployment

Chapter 42: Automating Deployment to IIS with Azure Pipelines

In this chapter, you will implement a Continuous Delivery pipeline for ASP.NET Core Web API using Azure Pipelines. You will prepare a Windows IIS server, configure an authorized self-hosted Azure Pipelines agent, publish and consume build artifacts, deploy the application, and verify that deployment succeeded.

Topics to Cover:
  • Introduction to Continuous Delivery for ASP.NET Core Web API
  • Why Deployment Automation Is Needed
  • Preparing IIS for Automated Deployment
  • Checking the .NET Runtime and ASP.NET Core Hosting Bundle
  • Understanding the Role of web.config in IIS Hosting
  • Installing and Configuring a Self-Hosted Azure Pipelines Agent
  • Creating Build and Deployment Stages in YAML
  • Downloading and Deploying Published Build Artifacts
  • Deploying Only After CI Succeeds
  • Verifying Deployment and Running Health Checks / Smoke Tests

Chapter 43: Introduction to Microsoft Azure

In this chapter, you will learn why production applications are hosted beyond a developer’s local machine. You will explore cloud computing, service models, and Microsoft Azure as the platform used in this course for hosting microservices, managed messaging, AI model integration, and deployment automation.

Topics to Cover
  • What is application deployment, and why is it required?
  • Local Environment vs. Production Environment
  • What is cloud computing?
  • Understanding IaaS, PaaS, and SaaS
  • Why do organizations prefer cloud hosting?
  • What is Microsoft Azure?
  • Benefits of Microsoft Azure

Chapter 44: Creating an ASP.NET Core Web API with SQL Server Using EF Core

In this chapter, we will build a complete ASP.NET Core Web API using .NET 8, SQL Server, and Entity Framework Core. We will follow a layered architecture and implement database operations through models, DTOs, repositories, services, and controllers.

Topics to Cover
  • Creating an ASP.NET Core Web API project using .NET 8
  • Understanding the Web API project structure
  • How do we integrate Entity Framework Core with SQL Server?
  • Creating Models and DTOs
  • Creating and configuring the Application DbContext
  • Implementing the Repository and Service layers
  • Creating API Controllers
  • How do we implement CRUD operations using EF Core?
  • Creating and applying EF Core migrations
  • Testing the Web API using Swagger
  • Understanding the request flow from Controller to Database

Chapter 45: Preparing the Project for Azure Deployment

In this chapter, we will prepare the ASP.NET Core Web API for deployment to Azure. We will focus on production-ready configuration, secure handling of connection strings and secrets, and the differences between development and release builds.

Topics to Cover
  • Debug Build vs. Release Build
  • Preparing the application for production deployment
  • Production configuration management
  • How should connection strings be managed?
  • Using environment variables
  • Secure handling of application secrets
  • Why should sensitive values never be hardcoded?
  • Deployment preparation best practices

Chapter 46: Creating an Azure Account and Exploring Azure Portal

In this chapter, we will begin working with Microsoft Azure by creating or signing in to an Azure account and exploring the Azure Portal. We will also understand subscriptions, resource groups, regions, and the basic structure used to organize Azure resources.

Topics to Cover
  • Why is an Azure account required?
  • Requirements for creating an Azure account
  • Why is a Microsoft account needed for Azure?
  • Creating an Azure account
  • Exploring the Azure Portal
  • What is an Azure Subscription?
  • What is a Resource Group?
  • Creating and organizing resources using a Resource Group
  • What is an Azure Region?
  • How do we choose the appropriate Azure Region?

Chapter 47: Azure Service Bus Fundamentals for Microservices

In this chapter, you will learn how Azure Service Bus enables reliable asynchronous messaging between cloud-based microservices. You will create a Service Bus namespace and explore queues, topics, subscriptions, message settlement, dead-letter queues, and the main messaging patterns used in an e-commerce application.

Topics to be Covered
  • Introduction to Azure Service Bus and Managed Messaging
  • Azure Service Bus vs. RabbitMQ vs. Apache Kafka
  • Creating an Azure Service Bus Namespace in Azure Portal
  • Understanding Queues, Topics, and Subscriptions
  • Point-to-Point Messaging and Publish / Subscribe Messaging
  • Message Locks, Peek-Lock, Completion, and Abandonment
  • Dead-Letter Queues, Retries, Duplicate Detection, and Sessions
  • Authentication, Permissions, and Connection Security
  • Sending and Receiving Test Messages

Chapter 48: Integrating Azure Service Bus with ASP.NET Core Microservices

In this chapter, you will integrate Azure Service Bus with ASP.NET Core Web API using the Azure.Messaging.ServiceBus .NET SDK. You will publish business events, process them with background consumers, and build a cloud-based order-to-notification workflow with secure configuration and reliable message handling.

Topics to be Covered
  • Installing the Azure.Messaging.ServiceBus NuGet Package
  • Configuring Service Bus and Authentication in ASP.NET Core
  • Creating Shared Message Contracts and Messaging Services
  • Sending Messages to Queues and Topics
  • Receiving and Processing Messages with ServiceBusProcessor
  • Integrating Order, Payment, and Notification Microservices
  • Implementing Message Completion, Retry, and Dead-Letter Handling
  • Handling Duplicate Messages and Idempotent Processing

Chapter 49: Azure Services Required for Manual Deployment

In this chapter, we will understand the Azure services required to manually host an ASP.NET Core Web API and SQL Server database. We will explore how these services work together to provide a complete cloud hosting environment.

Topics to Cover
  • What Azure services are required for manual deployment?
  • What is Azure App Service?
  • What is an App Service Plan?
  • What is Azure SQL Database?
  • What is an Azure SQL Logical Server?
  • Why is a Resource Group required?
  • How do Azure App Service and Azure SQL Database work together?

Chapter 50: Deploying ASP.NET Core Web API on Azure App Service

In this chapter, we will manually deploy an existing ASP.NET Core Web API to Azure App Service. We will create the required Azure resources, publish the application from Visual Studio, configure application settings, and verify that the deployed API is working successfully.

Topics to Cover
  • Why is Azure App Service suitable for hosting ASP.NET Core Web APIs?
  • Creating an App Service Plan and Azure Web App
  • Choosing the appropriate hosting configuration
  • Publishing an ASP.NET Core Web API from Visual Studio
  • Understanding the Publish Profile
  • Configuring application settings in Azure
  • Verifying the deployed application
  • Monitoring deployments and troubleshooting common issues

Chapter 51: Migrating SQL Server Database to Azure SQL Database

In this chapter, we will migrate an existing SQL Server database to Azure SQL Database. We will create the required Azure database resources, configure secure access, migrate the database, and verify that it is ready for use by the deployed application.

Topics to Cover
  • Why should we use Azure SQL Database?
  • What is an Azure SQL Logical Server?
  • Creating Azure SQL Database resources
  • Configuring authentication and firewall rules
  • Connecting to Azure SQL Database using SQL Server Management Studio
  • Migrating an existing SQL Server database

Chapter 52: Connecting the Deployed Web API with Azure SQL Database

In this chapter, we will connect the deployed ASP.NET Core Web API with Azure SQL Database. We will securely configure the database connection, verify end-to-end communication, and troubleshoot common connectivity issues.

Topics to Cover
  • How do we obtain the Azure SQL Database connection string?
  • Configuring connection strings in Azure App Service
  • Using Azure App Settings for secure configuration
  • How does the deployed Web API communicate with Azure SQL Database?
  • Verifying database connectivity
  • Testing CRUD operations from the deployed application
  • Troubleshooting database connectivity issues

Chapter 53: Introduction to Azure AI Integration and Microsoft Foundry

In this chapter, you will learn how Azure AI services and Microsoft Foundry can add intelligent capabilities to ASP.NET Core microservices. Using the course’s e-commerce system as a reference, you will identify useful AI scenarios, understand models and deployments, prepare the required Azure resources, and examine authentication, costs, privacy, and responsible AI before writing integration code.

Topics to be Covered
  • Introduction to AI Integration and AI-Powered Microservices
  • Common AI Use Cases in an E-Commerce Application
  • Overview of Microsoft Foundry and Azure OpenAI
  • Understanding AI Models, Deployments, Endpoints, and Tokens
  • Creating an Azure AI / Microsoft Foundry Resource and Project
  • Selecting a Supported Model and Deployment for the Azure Region
  • Understanding Authentication, API Keys, and Microsoft Entra ID
  • Prompt Fundamentals, Response Formats, and Model Limitations
  • Token Consumption, Cost Control, Data Privacy, and Responsible AI

Chapter 54: Implementing AI Integration in ASP.NET Core Web API Microservices

In this chapter, you will integrate an Azure-hosted AI model into the e-commerce microservices solution using ASP.NET Core Web API and .NET AI libraries. You will configure a supported SDK or Microsoft.Extensions.AI abstraction, build a reusable application service and a secured API endpoint, and implement an AI feature such as generating product descriptions or summarizing customer-support requests.

Topics to be Covered
  • Planning AI Integration in the Existing E-Commerce Architecture
  • Installing the Relevant .NET AI SDK and Microsoft.Extensions.AI Packages
  • Configuring the Model Endpoint, Deployment, and Credentials Securely
  • Creating a Reusable AI Application Service with Dependency Injection
  • Calling a Deployed Azure AI Model from ASP.NET Core Web API
  • Generating Product Descriptions or Summarizing Customer Support Requests
  • Validating Inputs and Handling AI Responses and Errors
  • Applying Timeouts, Retries, Logging, and Token Usage Monitoring
  • Protecting Sensitive Data and Implementing Appropriate AI Safeguards
  • Testing the AI Feature Using Swagger and Integrating It into the E-Commerce Workflow

Chapter 55: Docker Fundamentals for Beginners

In this chapter, we will build a strong foundation in Docker by understanding the problems it solves, its architecture, and its core components. We will also install Docker Desktop and explore the basic Docker workflow before containerizing an ASP.NET Core Web API.

Topics to Cover
  • What problems does Docker solve?
  • What is Docker, and why is it used?
  • Understanding Docker Images and Containers
  • Docker Engine, Docker Desktop, and Docker Architecture
  • Installing and configuring Docker Desktop
  • Running your first Docker container
  • Understanding the Docker workflow
  • Benefits of Docker for ASP.NET Core applications

Chapter 56: Working with Basic Docker Commands and Container Lifecycle

In this chapter, we will become familiar with the essential Docker commands required to work with containers on a local machine. We will understand the Docker container lifecycle, learn how to manage images and containers, and build the confidence needed before containerizing an ASP.NET Core Web API application.

Topics to Cover
  • What is Docker Hub, and why is it used?
  • Pulling Docker images and creating containers
  • Understanding the most commonly used Docker commands
  • How does the Docker container lifecycle work?
  • Managing Docker images and containers
  • Viewing container logs and monitoring running containers
  • Understanding port mapping in Docker
  • Cleaning up unused Docker resources

Chapter 57: Containerizing the ASP.NET Core Web API Using Docker

In this chapter, we will package an ASP.NET Core Web API into a Docker container and run it locally. We will learn how Dockerfiles work, build optimized Docker images using multi-stage builds, and verify that the containerized application runs successfully.

Topics to Cover
  • Why should an ASP.NET Core Web API be containerized?
  • Understanding the Dockerfile
  • Creating a Dockerfile for an ASP.NET Core Web API
  • What is a multi-stage Docker build?
  • Building and running Docker images
  • Accessing the containerized Web API
  • Rebuilding the Docker image after application changes
  • Testing the containerized application

Chapter 58: Managing Application Configuration in Docker

In this chapter, we will learn how to manage application configuration for containerized ASP.NET Core applications. We will understand environment variables, connection strings, logging configuration, and the best practices for keeping configuration secure and flexible.

Topics to Cover
  • Why is configuration management important in Docker?
  • Managing application settings using environment variables
  • Configuring ASP.NET Core environments inside Docker
  • Managing database connection strings securely
  • Configuring logging for containerized applications
  • Configuration management best practices

Chapter 59: Managing Docker Images with Azure Container Registry

In this chapter, we will learn how Azure Container Registry (ACR) helps store and manage Docker images securely in Azure. We will create a private container registry, manage image versions, and prepare Docker images for cloud deployment.

Topics to Cover
  • What is Azure Container Registry (ACR)?
  • Why should we use a private container registry?
  • Azure Container Registry vs. Docker Hub
  • Creating and configuring Azure Container Registry
  • Managing Docker images in Azure Container Registry
  • Understanding image tagging and versioning
  • Pushing and pulling Docker images

Chapter 60: Deploying Dockerized ASP.NET Core Web API on Azure App Service

In this chapter, we will deploy a Dockerized ASP.NET Core Web API to Azure App Service using Azure Container Registry. We will configure the application, verify the deployment, and understand how container-based deployment differs from traditional code-based deployment.

Topics to Cover
  • Why host Docker containers on Azure App Service?
  • Code-based deployment vs. Container-based deployment
  • Creating an Azure Web App for Containers
  • Integrating Azure App Service with Azure Container Registry
  • Configuring container settings and application configuration
  • Connecting the containerized application to Azure SQL Database
  • Verifying and monitoring the deployed application
  • Updating and redeploying container images

Chapter 61: Kubernetes and Azure Kubernetes Service Fundamentals

In this chapter, we will build a strong foundation in Kubernetes and Azure Kubernetes Service (AKS). We will understand why container orchestration is required, explore the Kubernetes architecture, and learn how AKS simplifies deploying and managing containerized applications in Azure.

Topics to Cover
  • Why is Kubernetes needed after Docker?
  • What is container orchestration?
  • What is Kubernetes, and how does it work?
  • Understanding the Kubernetes architecture and core components
  • What is Azure Kubernetes Service (AKS)?
  • Why should we use Azure Kubernetes Service?
  • Docker vs. Kubernetes vs. Azure Kubernetes Service

Chapter 62: Deploying ASP.NET Core Web API to Azure Kubernetes Service

In this chapter, we will deploy a Dockerized ASP.NET Core Web API to Azure Kubernetes Service using the Azure Portal. We will create and configure an AKS cluster, deploy the application, verify Kubernetes resources, and manage application updates.

Topics to Cover
  • Creating and configuring an Azure Kubernetes Service cluster
  • Connecting Azure Kubernetes Service with Azure Container Registry
  • Understanding Kubernetes Deployments and Services
  • Deploying an ASP.NET Core Web API to AKS
  • Verifying Deployments, ReplicaSets, Pods, and Services
  • Accessing the deployed application
  • Scaling and updating applications in AKS
  • Managing application rollbacks and cluster operations

Chapter 63: Managing Configuration, Secrets, Monitoring, and Cleanup in AKS

In this chapter, we will learn how to manage application configuration, secure sensitive information, monitor workloads, and maintain Azure Kubernetes Service after deployment. We will also explore the tools and techniques used for day-to-day Kubernetes administration.

Topics to Cover
  • Managing application configuration using ConfigMaps
  • Securing sensitive data using Kubernetes Secrets
  • Managing environment variables in Kubernetes
  • Understanding liveness, readiness, and startup probes
  • Monitoring applications and analyzing logs
  • Verifying deployed applications in AKS
  • Cleaning up Kubernetes resources and AKS clusters

Chapter 64: CI/CD with Azure DevOps for Azure, Docker, and AKS

In this chapter, you will use Azure DevOps to automate the build, testing, packaging, and deployment of ASP.NET Core microservices, including the AI-enabled API. You will create multi-stage Azure Pipelines using source code in Azure Repos, publish Docker images to Azure Container Registry, and deploy to Azure App Service or Azure Kubernetes Service using secure service connections, environments, and approvals.

Topics to Cover
  • Review of Continuous Integration and Continuous Delivery / Deployment
  • Connecting Azure Repos to Azure Pipelines
  • Creating Multi-Stage YAML Pipelines
  • Building and Testing ASP.NET Core APIs, Including the AI-Enabled Service
  • Configuring Azure Resource Manager Service Connections
  • Automating Deployment to Azure App Service
  • Building and Publishing Docker Images to Azure Container Registry
  • Automating Deployment to Azure Kubernetes Service
  • Managing Pipeline Variables, Secrets, and Environments
  • Approvals, Deployment Validation, and Rollback Basics

Chapter 65: Unit Testing Fundamentals Using xUnit

In this chapter, we will learn the fundamentals of Unit Testing and understand why it is an essential practice in modern software development. We will explore xUnit, write our first unit tests using a simple Console Application, and understand the principles that form the foundation for testing ASP.NET Core Web API applications.

Topics to Cover
  • What is Unit Testing?
  • Why is Unit Testing important?
  • Unit Testing vs. Integration Testing vs. End-to-End Testing
  • Why is xUnit the preferred testing framework for ASP.NET Core?
  • Creating your first Unit Test using xUnit
  • Understanding the Arrange-Act-Assert (AAA) pattern
  • Understanding [Fact], [Theory], and [InlineData]
  • Naming conventions and best practices for Unit Tests
  • Writing Unit Tests for a Calculator application

Chapter 66: Building a Real-World ASP.NET Core Web API for Unit Testing

In this chapter, we will build a real-world Order Management Web API that will be used throughout this course for Unit Testing. We will design the application using a layered architecture to ensure each component can be tested independently.

Topics to Cover
  • Why should an application be designed for Unit Testing?
  • Building the Order Management ASP.NET Core Web API
  • Understanding the layered architecture
  • Understanding Controllers, Services, Repositories, and Unit of Work
  • Designing Models, DTOs, and Custom Exceptions
  • Setting up the xUnit Test Project
  • Preparing the project for dependency injection and mocking
  • Understanding the complete request flow of the application

Chapter 67: Unit Testing the Service Layer in ASP.NET Core Web API

In this chapter, we will write Unit Tests for the Service Layer using xUnit and Moq. We will replace external dependencies with mock objects and verify business rules, validations, calculations, exception handling, and service behavior without using a real database.

Topics to Cover
  • What is Service Layer Unit Testing?
  • Why should dependencies be mocked?
  • Understanding Moq and mock objects
  • Creating and configuring mock dependencies
  • Testing business rules and validation logic
  • Testing exception handling and edge cases
  • Verifying repository interactions using Moq
  • Writing Maintainable Unit Tests for Business and AI Integration Services

Chapter 68: Unit Testing Controllers in ASP.NET Core Web API

In this chapter, we will learn how to Unit Test ASP.NET Core Web API Controllers independently from the Service Layer. We will verify HTTP responses, status codes, action results, and service interactions using mocked dependencies.

Topics to Cover
  • What is Controller Unit Testing?
  • Why should Controllers be Unit Tested?
  • Understanding the responsibilities of Controllers
  • Mocking the Service Layer
  • Testing HTTP status codes and Action Results
  • Verifying request handling and service invocation
  • Testing exception handling in Controllers
  • Controller Unit Testing best practices

Chapter 69: Unit Testing Repositories in ASP.NET Core Web API

In this chapter, we will learn how to Unit Test the Repository Layer using the Entity Framework Core InMemory Provider. We will verify data-access operations without using SQL Server and understand the recommended approach for testing repositories.

Topics to Cover
  • Should Repositories be Unit Tested?
  • What should Repository Tests verify?
  • What should Repository Tests not verify?
  • EF Core InMemory Provider vs. Mocking DbContext
  • Setting up Repository Tests using the InMemory Provider
  • Testing CRUD operations and LINQ queries
  • Testing filtering, sorting, and related data loading

By the end of this course, you will be able to design, secure, test, and deploy ASP.NET Core Web API microservices, integrate AI features with Azure AI and .NET, and manage source control and CI/CD with Azure DevOps.

You will also work with RabbitMQ, Kafka, Azure Service Bus, distributed data, API Gateways, resilience patterns, xUnit, Moq, Docker, Kubernetes, Azure Repos, Azure Pipelines, App Service, and AKS in the practical e-commerce project.

Note: If we have missed any topics, if new features are introduced, or if you would like to learn concepts not covered in this Microservices using ASP.NET Core Web API Syllabus, please let us know, and they will also be included in this course. If you have any questions, please don’t hesitate to contact us.

Enroll Today!

Join our comprehensive online training on Microservices using ASP.NET Core and become proficient in building modern, scalable applications. Enroll in our comprehensive online training course today and take the first step towards becoming a microservices expert.

Leave a Reply

Your email address will not be published. Required fields are marked *