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 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 namespace MvcSample.Web.Filters
{ {
public class AgeEnhancerAttribute : ActionFilterAttribute public class AgeEnhancerFilterAttribute : ActionFilterAttribute
{ {
public override void OnActionExecuting(ActionExecutingContext context) public override void OnActionExecuting(ActionExecutingContext context)
{ {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -4,11 +4,11 @@
namespace ModelBindingWebSite 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 namespace PrecompilationWebSite
{ {
public class MyCompilation : RazorPreCompileModule public class RazorPreCompilation : RazorPreCompileModule
{ {
public MyCompilation(IServiceProvider provider) : base(ReplaceProvider(provider)) public RazorPreCompilation(IServiceProvider provider) : base(ReplaceProvider(provider))
{ {
} }