aspnetcore/test/Microsoft.AspNet.Diagnostic.../TestHelperExtensions.cs

22 lines
710 B
C#

// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.Data.Entity.Infrastructure;
using Microsoft.Framework.DependencyInjection;
namespace Microsoft.Data.Entity.Tests
{
public static class TestHelperExtensions
{
public static EntityFrameworkServicesBuilder AddProviderServices(this EntityFrameworkServicesBuilder entityServicesBuilder)
{
return entityServicesBuilder.AddInMemoryStore();
}
public static DbContextOptions UseProviderOptions(this DbContextOptions options)
{
return options;
}
}
}