-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(tsc-sdk): add tsc-sdk for alert #125
Conversation
public static async Task<TResult> GetByBodyAsync<TResult>(this ICallerProvider caller, string url, object body) where TResult : class | ||
{ | ||
var request = new HttpRequestMessage(HttpMethod.Get, url); | ||
if (body != null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
body is not null, if body is nullable, its type is object?
src/BasicAbility/Masa.Contrib.BasicAbility.Tsc/Extensions/CallerProviderExtensions.cs
Outdated
Show resolved
Hide resolved
src/BasicAbility/Masa.Contrib.BasicAbility.Tsc/Masa.Contrib.BasicAbility.Tsc.csproj
Outdated
Show resolved
Hide resolved
src/BasicAbility/Masa.Contrib.BasicAbility.Tsc/Service/LogService.cs
Outdated
Show resolved
Hide resolved
public class CallerProviderExtensionsTests | ||
{ | ||
[TestMethod] | ||
public async Task GetByBodyAsyncTest() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The method name should reflect what you want to test, it can be longer
public class LogServiceTests | ||
{ | ||
[TestMethod] | ||
public async Task GetFieldsAsyncTest() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The method name should reflect what you want to test, it can be longer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deal with similar issues
test/Masa.Contrib.BasicAbility.Tsc.Test/Service/MetricServiceTests.cs
Outdated
Show resolved
Hide resolved
test/Masa.Contrib.BasicAbility.Tsc.Test/Service/MetricServiceTests.cs
Outdated
Show resolved
Hide resolved
src/BasicAbility/Masa.Contrib.BasicAbility.Tsc/Extensions/CallerProviderExtensions.cs
Show resolved
Hide resolved
src/BasicAbility/Masa.Contrib.BasicAbility.Tsc/Service/MetricService.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.