Skip to content

Commit a75b362

Browse files
ronwarnerRon Warner
andauthored
Fixed typos (#642)
* Fixed typos. * More typos. * IDE made unintended changes to SLN. Just setting them back to how they were. Co-authored-by: Ron Warner <rwarner@metalexchangecorp.com>
1 parent 96a32ea commit a75b362

File tree

17 files changed

+66
-66
lines changed

17 files changed

+66
-66
lines changed

ApiVersioning.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,4 +357,4 @@ Global
357357
GlobalSection(ExtensibilityGlobals) = postSolution
358358
SolutionGuid = {5A38B7FA-17BC-4D3C-977F-7379653DC67C}
359359
EndGlobalSection
360-
EndGlobal
360+
EndGlobal

samples/webapi/AdvancedODataWebApiSample/Controllers/OrdersController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using Microsoft.Examples.Models;
44
using System.Web.Http;
55

6-
// note: since the application is configured with AssumeDefaultVersionWhenUnspecifed, this controller
6+
// note: since the application is configured with AssumeDefaultVersionWhenUnspecified, this controller
77
// is implicitly versioned to the DefaultApiVersion, which has the default value 1.0.
88
public class OrdersController : ApiController
99
{

samples/webapi/AdvancedODataWebApiSample/Controllers/PeopleController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using Microsoft.Web.Http;
88
using System.Web.Http;
99

10-
// note: since the application is configured with AssumeDefaultVersionWhenUnspecifed, this controller
10+
// note: since the application is configured with AssumeDefaultVersionWhenUnspecified, this controller
1111
// is resolved without or without an API version, even though it is explicitly versioned
1212
[ApiVersion( "1.0" )]
1313
[ApiVersion( "2.0" )]

src/Common.ApiExplorer/ApiExplorerOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public partial class ApiExplorerOptions
6666
/// may be useful for a version-neutral API that its own per-API version logic.
6767
/// </para>
6868
/// <para>
69-
/// An API version defined using the URLsegment method is unaffected by this setting because path-based route
69+
/// An API version defined using the URL segment method is unaffected by this setting because path-based route
7070
/// parameters are always required.
7171
/// </para></remarks>
7272
public bool AddApiVersionParametersWhenVersionNeutral { get; set; }

src/Common/Versioning/Conventions/ApiVersionConventionBuilderExtensions.cs

Lines changed: 36 additions & 36 deletions
Large diffs are not rendered by default.

src/Microsoft.AspNet.WebApi.Versioning/System.Web.Http/HttpActionDescriptorExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ public static class HttpActionDescriptorExtensions
1717
const string AttributeRoutedPropertyKey = "MS_IsAttributeRouted";
1818

1919
/// <summary>
20-
/// Gets the API version information associated with a action.
20+
/// Gets the API version information associated with an action.
2121
/// </summary>
2222
/// <param name="action">The <see cref="HttpActionDescriptor">action</see> to evaluate.</param>
2323
/// <returns>The <see cref="ApiVersionModel">API version information</see> for the action.</returns>
2424
public static ApiVersionModel GetApiVersionModel( this HttpActionDescriptor action ) => action.GetApiVersionModel( Explicit );
2525

2626
/// <summary>
27-
/// Gets the API version information associated with a action.
27+
/// Gets the API version information associated with an action.
2828
/// </summary>
2929
/// <param name="action">The <see cref="HttpActionDescriptor">action</see> to evaluate.</param>
3030
/// <param name="mapping">One or more of the <see cref="ApiVersionMapping"/> values.</param>

src/Microsoft.AspNet.WebApi.Versioning/System.Web.Http/HttpRouteCollectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public static class HttpRouteCollectionExtensions
1515
/// Returns the route collection as a read-only dictionary mapping configured names to routes.
1616
/// </summary>
1717
/// <param name="routes">The <see cref="HttpRouteCollection">route collection</see> to convert.</param>
18-
/// <returns>A new <see cref="IReadOnlyDictionary{TKey, TValue}">read-only dictonary</see> of
18+
/// <returns>A new <see cref="IReadOnlyDictionary{TKey, TValue}">read-only dictionary</see> of
1919
/// <see cref="IHttpRoute">routes</see> mapped to their name.</returns>
2020
public static IReadOnlyDictionary<string, IHttpRoute> ToDictionary( this HttpRouteCollection routes )
2121
{

src/Microsoft.AspNetCore.Mvc.Versioning/Abstractions/ActionDescriptorExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
public static class ActionDescriptorExtensions
1717
{
1818
/// <summary>
19-
/// Gets the API version information associated with a action.
19+
/// Gets the API version information associated with an action.
2020
/// </summary>
2121
/// <param name="action">The <see cref="ActionDescriptor">action</see> to evaluate.</param>
2222
/// <returns>The <see cref="ApiVersionModel">API version information</see> for the action.</returns>
2323
public static ApiVersionModel GetApiVersionModel( this ActionDescriptor action ) => action.GetApiVersionModel( Explicit );
2424

2525
/// <summary>
26-
/// Gets the API version information associated with a action.
26+
/// Gets the API version information associated with an action.
2727
/// </summary>
2828
/// <param name="action">The <see cref="ActionDescriptor">action</see> to evaluate.</param>
2929
/// <param name="mapping">One or more of the <see cref="ApiVersionMapping"/> values.</param>

test/Microsoft.AspNet.OData.Versioning.ApiExplorer.Tests/AspNet.OData/DefaultModelTypeBuilderTest.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,14 @@ public void type_should_use_self_referencing_property_substitution()
147147
var originalType = typeof( Company );
148148

149149
//act
150-
var subsitutedType = originalType.SubstituteIfNecessary( context );
150+
var substitutedType = originalType.SubstituteIfNecessary( context );
151151

152152
// assert
153-
subsitutedType.GetRuntimeProperties().Should().HaveCount( 4 );
154-
subsitutedType.Should().HaveProperty<int>( nameof( Company.CompanyId ) );
155-
subsitutedType.Should().HaveProperty<string>( nameof( Company.Name ) );
156-
subsitutedType.Should().Be( subsitutedType.GetRuntimeProperty( nameof( Company.ParentCompany ) ).PropertyType );
157-
subsitutedType.Should().Be( subsitutedType.GetRuntimeProperty( nameof( Company.Subsidiaries ) ).PropertyType.GetGenericArguments()[0] );
153+
substitutedType.GetRuntimeProperties().Should().HaveCount( 4 );
154+
substitutedType.Should().HaveProperty<int>( nameof( Company.CompanyId ) );
155+
substitutedType.Should().HaveProperty<string>( nameof( Company.Name ) );
156+
substitutedType.Should().Be( substitutedType.GetRuntimeProperty( nameof( Company.ParentCompany ) ).PropertyType );
157+
substitutedType.Should().Be( substitutedType.GetRuntimeProperty( nameof( Company.Subsidiaries ) ).PropertyType.GetGenericArguments()[0] );
158158
}
159159

160160
[Fact]

test/Microsoft.AspNet.WebApi.Versioning.Tests/Routing/ApiVersionRouteConstraintTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public void match_should_return_true_when_matched()
9595
}
9696

9797
[Fact]
98-
public void url_helper_should_create_route_link_with_api_version_constriant()
98+
public void url_helper_should_create_route_link_with_api_version_constraint()
9999
{
100100
// arrange
101101
var request = new HttpRequestMessage();

0 commit comments

Comments
 (0)