2022-06-21 08:09:38 +02:00
|
|
|
// Copyright (c) Umbraco.
|
2020-12-20 08:36:11 +01:00
|
|
|
// See LICENSE for more details.
|
|
|
|
|
|
2020-10-30 11:16:17 +00:00
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
2021-02-18 11:06:02 +01:00
|
|
|
using Umbraco.Cms.Core.DependencyInjection;
|
2020-10-30 11:16:17 +00:00
|
|
|
|
2022-06-21 08:09:38 +02:00
|
|
|
namespace Umbraco.Cms.Tests.UnitTests.TestHelpers;
|
|
|
|
|
|
|
|
|
|
public static class CompositionExtensions
|
2020-10-30 11:16:17 +00:00
|
|
|
{
|
2022-06-21 08:09:38 +02:00
|
|
|
[Obsolete("This extension method exists only to ease migration, please refactor")]
|
|
|
|
|
public static IServiceProvider CreateServiceProvider(this IUmbracoBuilder builder)
|
2020-10-30 11:16:17 +00:00
|
|
|
{
|
2022-06-21 08:09:38 +02:00
|
|
|
builder.Build();
|
|
|
|
|
return builder.Services.BuildServiceProvider();
|
2020-10-30 11:16:17 +00:00
|
|
|
}
|
|
|
|
|
}
|