Skip to content

Commit 2bb5012

Browse files
author
Matthew Thornton
committed
Clean up comments in DomainExceptionFilter and remove Moq visibility in AssemblyInfo file.
1 parent c25a3c7 commit 2bb5012

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

src/Winton.DomainModelling.AspNetCore/DomainExceptionFilter.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ public DomainExceptionFilter()
2626
/// <param name="exceptionMapper">
2727
/// A function to map custom domain exceptions, that are not handled by this class, to action
2828
/// results.
29+
/// This parameter can be used to extend the capabilities of this exception filter to meet an application's specific
30+
/// requirements.
2931
/// </param>
3032
public DomainExceptionFilter(Func<DomainException, ErrorResponse, IActionResult> exceptionMapper)
3133
{
@@ -42,12 +44,6 @@ public void OnException(ExceptionContext context)
4244
}
4345
}
4446

45-
/// <summary>
46-
/// Maps a <see cref="DomainException" /> to an <see cref="IActionResult" />.
47-
/// This method can be overriden by classes that extend this one to extend or redefine this mapping.
48-
/// </summary>
49-
/// <param name="domainException">The <see cref="DomainException" />.</param>
50-
/// <returns>The <see cref="IActionResult" />.</returns>
5147
private IActionResult CreateResult(DomainException domainException)
5248
{
5349
var errorResponse = new ErrorResponse(domainException);

src/Winton.DomainModelling.AspNetCore/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44
using System.Runtime.CompilerServices;
55

66
[assembly: InternalsVisibleTo("Winton.DomainModelling.AspNetCore.Tests")]
7-
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")]

0 commit comments

Comments
 (0)