22 lines
603 B
C#
22 lines
603 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.Framework.OptionsModel;
|
|
|
|
namespace Microsoft.AspNet.Mvc
|
|
{
|
|
public class MockMvcViewOptionsAccessor : IOptions<MvcViewOptions>
|
|
{
|
|
public MockMvcViewOptionsAccessor()
|
|
{
|
|
Options = new MvcViewOptions();
|
|
}
|
|
|
|
public MvcViewOptions Options { get; private set; }
|
|
|
|
public MvcViewOptions GetNamedOptions(string name)
|
|
{
|
|
return Options;
|
|
}
|
|
}
|
|
} |