5 Dependency Injection And Application Configuration

NET Centric Computing · Unit 5

Dependency Injection and Application Configuration

Exam-focused notes for Dependency Injection and Application Configuration (NET Centric Computing, BIT351): what the TU syllabus asks and how it has actually been tested, with 2 solved past questions from this unit.

What this unit covers

  • Dependency injection principles
  • IOC container
  • Creating controllers with DI
  • Creating actions with DI
  • Building and running .NET Core applications
  • Testing .NET Core applications

Dependency injection principles

2081.110 marks

What do you mean by dependency injection and IOC container? Describe the methods for creating controller and action with example.[10]

Note: The reference notes were not available for this topic. The following answer is based on standard ASP.NET MVC / .NET Core curriculum content as taught in TU BSc CSIT. --- Dependency Injection is a design pattern and a technique for achieving Inversion ...

Full solved answer →

Building and running .NET Core applications

05 marks

How do you build, run abd test .NET core applications? [5]

Note: Reference notes were not available for this topic. The following answer is based on standard .NET Core documentation and practices, which align with the TU BSc CSIT curriculum. --- The dotnet build command compiles the application and its dependencies...

Full solved answer →