CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
TestDIContext.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="TestDIContext.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Test DI context for use in tests</summary>
7//-----------------------------------------------------------------------
8using System;
9using System.Collections.Generic;
10using System.Text;
11
12namespace Csla.TestHelpers
13{
14
18 public class TestDIContext
19 {
20
25 public TestDIContext(IServiceProvider serviceProvider)
26 {
27 ServiceProvider = serviceProvider;
28 }
29
33 public IServiceProvider ServiceProvider { get; private set; }
34
35 }
36}
Type to carry context information for DI in unit tests
TestDIContext(IServiceProvider serviceProvider)
Main constructor
IServiceProvider ServiceProvider
The service provider used to perform DI operations