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
//-----------------------------------------------------------------------
8
using
System;
9
using
System.Collections.Generic;
10
using
System.Text;
11
12
namespace
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
}
Csla.TestHelpers.TestDIContext
Type to carry context information for DI in unit tests
Definition:
TestDIContext.cs:19
Csla.TestHelpers.TestDIContext.TestDIContext
TestDIContext(IServiceProvider serviceProvider)
Main constructor
Definition:
TestDIContext.cs:25
Csla.TestHelpers.TestDIContext.ServiceProvider
IServiceProvider ServiceProvider
The service provider used to perform DI operations
Definition:
TestDIContext.cs:33
Csla.TestHelpers
Definition:
ApplicationContextFactory.cs:14
Generated by
1.9.2