matched classnames with filenames
This commit is contained in:
parent
99b5f430ff
commit
9f1cb655f6
|
|
@ -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)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ namespace MvcSample.Web
|
|||
|
||||
[ServiceFilter(typeof(PassThroughAttribute))]
|
||||
[AllowAnonymous]
|
||||
[AgeEnhancer]
|
||||
[AgeEnhancerFilter]
|
||||
[Delay(500)]
|
||||
public ActionResult Index(int age = 20, string userName = "SampleUser")
|
||||
{
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ using Xunit;
|
|||
|
||||
namespace Microsoft.AspNet.Mvc
|
||||
{
|
||||
public class DataContractSerializerInputFormatterTests
|
||||
public class XmlDataContractSerializerInputFormatterTest
|
||||
{
|
||||
[DataContract(Name = "DummyClass", Namespace = "")]
|
||||
public class DummyClass
|
||||
|
|
@ -10,7 +10,7 @@ using Xunit;
|
|||
|
||||
namespace Microsoft.AspNet.Mvc
|
||||
{
|
||||
public class ModelBinderDescriptorExtensionTest
|
||||
public class ModelBinderDescriptorExtensionsTest
|
||||
{
|
||||
[Theory]
|
||||
[InlineData(-1)]
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ using Xunit;
|
|||
|
||||
namespace Microsoft.AspNet.Mvc
|
||||
{
|
||||
public class ViewEngineDescriptorExtensionTest
|
||||
public class ViewEngineDescriptorExtensionsTest
|
||||
{
|
||||
[Theory]
|
||||
[InlineData(-1)]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
@ -9,7 +9,7 @@ using Xunit;
|
|||
|
||||
namespace Microsoft.AspNet.Mvc.Razor
|
||||
{
|
||||
public class ViewStartProviderTest
|
||||
public class ViewStartUtilityTest
|
||||
{
|
||||
[Theory]
|
||||
[InlineData(null)]
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ using Microsoft.AspNet.Mvc;
|
|||
|
||||
namespace ModelBindingWebSite.Controllers
|
||||
{
|
||||
public class WithoutMetadataController : Controller
|
||||
public class WithoutBinderMetadataController : Controller
|
||||
{
|
||||
public Person Person { get; set; }
|
||||
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
|
||||
namespace ModelBindingWebSite
|
||||
{
|
||||
public class EmployeeWithMetadata : Employee
|
||||
public class EmployeeWithBinderMetadata : Employee
|
||||
{
|
||||
}
|
||||
|
||||
public class DerivedEmployee : EmployeeWithMetadata
|
||||
public class DerivedEmployee : EmployeeWithBinderMetadata
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue