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.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
TestDIContextExtensions.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="TestDIContextExtensions.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Extension methods for the TestDIContext type</summary>
7//-----------------------------------------------------------------------
8using System;
9using System.Collections.Generic;
10using System.Text;
11
12namespace Csla.TestHelpers
13{
14
18 public static class TestDIContextExtensions
19 {
20
26 public static ApplicationContext CreateTestApplicationContext(this TestDIContext context)
27 {
28 return ApplicationContextFactory.CreateTestApplicationContext(context);
29 }
30
36 public static IDataPortal<T> CreateDataPortal<T>(this TestDIContext context)
37 {
38 return DataPortalFactory.CreateDataPortal<T>(context);
39 }
40
46 public static IChildDataPortal<T> CreateChildDataPortal<T>(this TestDIContext context)
47 {
48 return DataPortalFactory.CreateChildDataPortal<T>(context);
49 }
50 }
51
52}