refactor: small refactoring on models #460
Annotations
2 errors and 26 warnings
Running tests on windows-latest
WeihanLi.Common.Aspect.FluentConfigInterceptorResolver.ResolveInterceptors(IInvocation invocation) System.InvalidOperationException : Collection was modified; enumeration operation may not execute.
|
Running tests on windows-latest
Process completed with exit code 1.
|
Running tests on macOS-latest:
test/WeihanLi.Common.Test/ModelsTest/ResultTest.cs#L18
'ResultStatus.NoPermission' is obsolete: 'Please use Forbidden instead'
|
Running tests on macOS-latest:
test/WeihanLi.Common.Test/ModelsTest/ResultTest.cs#L19
'ResultStatus.RequestError' is obsolete: 'Please use BadRequest instead'
|
Running tests on macOS-latest:
test/WeihanLi.Common.Test/ModelsTest/ResultTest.cs#L21
'ResultStatus.ResourceNotFound' is obsolete: 'Please use NotFound instead'
|
Running tests on macOS-latest:
test/WeihanLi.Common.Test/ModelsTest/ResultTest.cs#L18
'ResultStatus.NoPermission' is obsolete: 'Please use Forbidden instead'
|
Running tests on macOS-latest:
test/WeihanLi.Common.Test/ModelsTest/ResultTest.cs#L19
'ResultStatus.RequestError' is obsolete: 'Please use BadRequest instead'
|
Running tests on macOS-latest:
test/WeihanLi.Common.Test/ModelsTest/ResultTest.cs#L21
'ResultStatus.ResourceNotFound' is obsolete: 'Please use NotFound instead'
|
Running tests on macOS-latest:
src/WeihanLi.Common/DependencyInjection/ServiceContainer.cs#L274
Member 'WeihanLi.Common.DependencyInjection.ServiceContainer.GetService(Type)' with 'RequiresDynamicCodeAttribute' implements interface member 'System.IServiceProvider.GetService(Type)' without 'RequiresDynamicCodeAttribute'. 'RequiresDynamicCodeAttribute' annotations must match across all interface implementations or overrides.
|
Running tests on macOS-latest:
src/WeihanLi.Common/DependencyInjection/ServiceContainer.cs#L274
Member 'WeihanLi.Common.DependencyInjection.ServiceContainer.GetService(Type)' with 'RequiresUnreferencedCodeAttribute' implements interface member 'System.IServiceProvider.GetService(Type)' without 'RequiresUnreferencedCodeAttribute'. 'RequiresUnreferencedCodeAttribute' annotations must match across all interface implementations or overrides.
|
Running tests on macOS-latest:
src/WeihanLi.Common/DependencyResolver.cs#L61
Member 'WeihanLi.Common.DependencyResolver.ServiceProviderDependencyResolver.GetServices(Type)' with 'RequiresUnreferencedCodeAttribute' implements interface member 'WeihanLi.Common.IDependencyResolver.GetServices(Type)' without 'RequiresUnreferencedCodeAttribute'. 'RequiresUnreferencedCodeAttribute' annotations must match across all interface implementations or overrides.
|
Running tests on macOS-latest:
src/WeihanLi.Common/DependencyResolver.cs#L91
'DynamicallyAccessedMemberTypes' in 'DynamicallyAccessedMembersAttribute' on the parameter 'serviceType' of method 'WeihanLi.Common.DependencyResolver.DefaultDependencyResolver.GetService(Type)' don't match overridden parameter 'serviceType' of method 'System.IServiceProvider.GetService(Type)'. All overridden members must have the same 'DynamicallyAccessedMembersAttribute' usage.
|
Running tests on ubuntu-latest:
test/WeihanLi.Common.Test/ModelsTest/ResultTest.cs#L18
'ResultStatus.NoPermission' is obsolete: 'Please use Forbidden instead'
|
Running tests on ubuntu-latest:
test/WeihanLi.Common.Test/ModelsTest/ResultTest.cs#L19
'ResultStatus.RequestError' is obsolete: 'Please use BadRequest instead'
|
Running tests on ubuntu-latest:
test/WeihanLi.Common.Test/ModelsTest/ResultTest.cs#L21
'ResultStatus.ResourceNotFound' is obsolete: 'Please use NotFound instead'
|
Running tests on ubuntu-latest:
test/WeihanLi.Common.Test/ModelsTest/ResultTest.cs#L18
'ResultStatus.NoPermission' is obsolete: 'Please use Forbidden instead'
|
Running tests on ubuntu-latest:
test/WeihanLi.Common.Test/ModelsTest/ResultTest.cs#L19
'ResultStatus.RequestError' is obsolete: 'Please use BadRequest instead'
|
Running tests on ubuntu-latest:
test/WeihanLi.Common.Test/ModelsTest/ResultTest.cs#L21
'ResultStatus.ResourceNotFound' is obsolete: 'Please use NotFound instead'
|
Running tests on ubuntu-latest:
src/WeihanLi.Common/Aspect/AttributeInterceptorResolver.cs#L19
Member 'WeihanLi.Common.Aspect.AttributeInterceptorResolver.ResolveInterceptors(IInvocation)' with 'RequiresUnreferencedCodeAttribute' implements interface member 'WeihanLi.Common.Aspect.IInterceptorResolver.ResolveInterceptors(IInvocation)' without 'RequiresUnreferencedCodeAttribute'. 'RequiresUnreferencedCodeAttribute' annotations must match across all interface implementations or overrides.
|
Running tests on ubuntu-latest:
src/WeihanLi.Common/Aspect/DefaultProxyFactory.cs#L16
Member 'WeihanLi.Common.Aspect.DefaultProxyFactory.CreateProxy(Type, Object[])' with 'RequiresDynamicCodeAttribute' implements interface member 'WeihanLi.Common.Aspect.IProxyFactory.CreateProxy(Type, Object[])' without 'RequiresDynamicCodeAttribute'. 'RequiresDynamicCodeAttribute' annotations must match across all interface implementations or overrides.
|
Running tests on ubuntu-latest:
src/WeihanLi.Common/Aspect/DefaultProxyFactory.cs#L27
Member 'WeihanLi.Common.Aspect.DefaultProxyFactory.CreateProxy(Type, Type, params Object[])' with 'RequiresDynamicCodeAttribute' implements interface member 'WeihanLi.Common.Aspect.IProxyFactory.CreateProxy(Type, Type, params Object[])' without 'RequiresDynamicCodeAttribute'. 'RequiresDynamicCodeAttribute' annotations must match across all interface implementations or overrides.
|
Running tests on ubuntu-latest:
src/WeihanLi.Common/Aspect/DefaultProxyFactory.cs#L46
Member 'WeihanLi.Common.Aspect.DefaultProxyFactory.CreateProxyWithTarget(Type, Object, Object[])' with 'RequiresDynamicCodeAttribute' implements interface member 'WeihanLi.Common.Aspect.IProxyFactory.CreateProxyWithTarget(Type, Object, Object[])' without 'RequiresDynamicCodeAttribute'. 'RequiresDynamicCodeAttribute' annotations must match across all interface implementations or overrides.
|
Running tests on windows-latest:
test/WeihanLi.Common.Test/ModelsTest/ResultTest.cs#L18
'ResultStatus.NoPermission' is obsolete: 'Please use Forbidden instead'
|
Running tests on windows-latest:
test/WeihanLi.Common.Test/ModelsTest/ResultTest.cs#L19
'ResultStatus.RequestError' is obsolete: 'Please use BadRequest instead'
|
Running tests on windows-latest:
test/WeihanLi.Common.Test/ModelsTest/ResultTest.cs#L21
'ResultStatus.ResourceNotFound' is obsolete: 'Please use NotFound instead'
|
Running tests on windows-latest:
test/WeihanLi.Common.Test/ModelsTest/ResultTest.cs#L18
'ResultStatus.NoPermission' is obsolete: 'Please use Forbidden instead'
|
Running tests on windows-latest:
test/WeihanLi.Common.Test/ModelsTest/ResultTest.cs#L19
'ResultStatus.RequestError' is obsolete: 'Please use BadRequest instead'
|
Running tests on windows-latest:
test/WeihanLi.Common.Test/ModelsTest/ResultTest.cs#L21
'ResultStatus.ResourceNotFound' is obsolete: 'Please use NotFound instead'
|