matched classnames with filenames

This commit is contained in:
Ajay Bhargav Baaskaran 2014-11-21 16:26:24 -08:00
parent 99b5f430ff
commit 9f1cb655f6
34 changed files with 23 additions and 23 deletions

View File

@ -6,9 +6,9 @@ using Microsoft.AspNet.Mvc;
namespace MvcSample.Web
{
public class MyCompilation : RazorPreCompileModule
public class RazorPreCompilation : RazorPreCompileModule
{
public MyCompilation(IServiceProvider provider) : base(provider)
public RazorPreCompilation(IServiceProvider provider) : base(provider)
{
}
}

View File

@ -6,7 +6,7 @@ using Microsoft.AspNet.Mvc;
namespace MvcSample.Web.Filters
{
public class AgeEnhancerAttribute : ActionFilterAttribute
public class AgeEnhancerFilterAttribute : ActionFilterAttribute
{
public override void OnActionExecuting(ActionExecutingContext context)
{

View File

@ -26,7 +26,7 @@ namespace MvcSample.Web
[ServiceFilter(typeof(PassThroughAttribute))]
[AllowAnonymous]
[AgeEnhancer]
[AgeEnhancerFilter]
[Delay(500)]
public ActionResult Index(int age = 20, string userName = "SampleUser")
{

View File

@ -17,7 +17,7 @@ using Xunit;
namespace Microsoft.AspNet.Mvc
{
public class DataContractSerializerInputFormatterTests
public class XmlDataContractSerializerInputFormatterTest
{
[DataContract(Name = "DummyClass", Namespace = "")]
public class DummyClass

View File

@ -10,7 +10,7 @@ using Xunit;
namespace Microsoft.AspNet.Mvc
{
public class ModelBinderDescriptorExtensionTest
public class ModelBinderDescriptorExtensionsTest
{
[Theory]
[InlineData(-1)]

View File

@ -10,7 +10,7 @@ using Xunit;
namespace Microsoft.AspNet.Mvc
{
public class ViewEngineDescriptorExtensionTest
public class ViewEngineDescriptorExtensionsTest
{
[Theory]
[InlineData(-1)]

View File

@ -11,7 +11,7 @@ using Xunit;
namespace Microsoft.AspNet.Mvc.Core
{
public class DefaultDisplayTemplateTests
public class DefaultDisplayTemplatesTest
{
// Input value; HTML encode; expected value.
public static TheoryData<string, bool, string> HtmlEncodeData

View File

@ -116,7 +116,7 @@ namespace Microsoft.AspNet.Mvc.Core
}
[Theory]
[MemberData(nameof(DefaultDisplayTemplateTests.HtmlEncodeData), MemberType = typeof(DefaultDisplayTemplateTests))]
[MemberData(nameof(DefaultDisplayTemplatesTest.HtmlEncodeData), MemberType = typeof(DefaultDisplayTemplatesTest))]
public void ObjectTemplateDisplaysSimpleDisplayTextWithNonNullModelTemplateDepthGreaterThanOne(
string simpleDisplayText,
bool htmlEncode,

View File

@ -348,7 +348,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
var client = server.CreateClient();
// Act & Assert
var response = await client.GetStringAsync("http://localhost/WithMetadata/EchoDocument");
var response = await client.GetStringAsync("http://localhost/WithBinderMetadata/EchoDocument");
var document = JsonConvert.DeserializeObject<Document>
(response);
@ -367,7 +367,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
// Act
var response = await
client.GetAsync("http://localhost/WithMetadata" +
client.GetAsync("http://localhost/WithBinderMetadata" +
"/ParametersWithNoValueProviderMetadataUseTheAvailableValueProviders" +
"?Name=somename&Age=12");
@ -389,7 +389,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
// Act
var response = await
client.GetAsync("http://localhost/WithoutMetadata" +
client.GetAsync("http://localhost/WithoutBinderMetadata" +
"/GetPersonParameter" +
"?Name=somename&Age=12");
@ -411,7 +411,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
// Act
var response = await
client.GetAsync("http://localhost/WithoutMetadata" +
client.GetAsync("http://localhost/WithoutBinderMetadata" +
"/GetPersonParameter?p="); // here p is the model name.
//Assert
@ -432,7 +432,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
// Act
var response = await
client.GetAsync("http://localhost/WithoutMetadata" +
client.GetAsync("http://localhost/WithoutBinderMetadata" +
"/GetPersonParameter");
//Assert

View File

@ -12,7 +12,7 @@ using Xunit;
namespace Microsoft.AspNet.Mvc.FunctionalTests
{
public class OutputFormatterTests
public class OutputFormatterTest
{
private readonly IServiceProvider _provider = TestHelper.CreateServices("ConnegWebSite");
private readonly Action<IApplicationBuilder> _app = new Startup().Configure;

View File

@ -9,7 +9,7 @@ using Xunit;
namespace Microsoft.AspNet.Mvc.Razor
{
public class ViewStartProviderTest
public class ViewStartUtilityTest
{
[Theory]
[InlineData(null)]

View File

@ -7,9 +7,9 @@ using Microsoft.AspNet.Mvc.ModelBinding;
namespace ModelBindingWebSite.Controllers
{
public class WithMetadataController : Controller
public class WithBinderMetadataController : Controller
{
public EmployeeWithMetadata BindWithTypeMetadata(EmployeeWithMetadata emp)
public EmployeeWithBinderMetadata BindWithTypeMetadata(EmployeeWithBinderMetadata emp)
{
return emp;
}

View File

@ -6,7 +6,7 @@ using Microsoft.AspNet.Mvc;
namespace ModelBindingWebSite.Controllers
{
public class WithoutMetadataController : Controller
public class WithoutBinderMetadataController : Controller
{
public Person Person { get; set; }

View File

@ -4,11 +4,11 @@
namespace ModelBindingWebSite
{
public class EmployeeWithMetadata : Employee
public class EmployeeWithBinderMetadata : Employee
{
}
public class DerivedEmployee : EmployeeWithMetadata
public class DerivedEmployee : EmployeeWithBinderMetadata
{
}

View File

@ -12,9 +12,9 @@ using Microsoft.Framework.Runtime;
namespace PrecompilationWebSite
{
public class MyCompilation : RazorPreCompileModule
public class RazorPreCompilation : RazorPreCompileModule
{
public MyCompilation(IServiceProvider provider) : base(ReplaceProvider(provider))
public RazorPreCompilation(IServiceProvider provider) : base(ReplaceProvider(provider))
{
}