Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 26582e7

Browse files
committedApr 13, 2023
chore: Fix code smell
1 parent 5d46482 commit 26582e7

File tree

1 file changed

+3
-1
lines changed
  • src/Contrib/Service/Tests/Masa.Contrib.Service.MinimalAPIs.Tests/Services

1 file changed

+3
-1
lines changed
 

‎src/Contrib/Service/Tests/Masa.Contrib.Service.MinimalAPIs.Tests/Services/OrderService.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
namespace Masa.Contrib.Service.MinimalAPIs.Tests.Services;
55

6+
#pragma warning disable CA1822
67
public class OrderService : ServiceBase
78
{
89
public string ConnectionString => GetConnectionString;
@@ -34,7 +35,7 @@ public static void SetName()
3435

3536
public override string ToString()
3637
{
37-
return base.ToString();
38+
return nameof(OrderService);
3839
}
3940

4041
[IgnoreRoute]
@@ -43,3 +44,4 @@ public List<MethodInfo> TestGetMethodsByAutoMapRoute(ServiceGlobalRouteOptions g
4344
return base.GetMethodsByAutoMapRoute(typeof(OrderService), globalOptions);
4445
}
4546
}
47+
#pragma warning restore CA1822

0 commit comments

Comments
 (0)
Please sign in to comment.