Skip to content
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

Merged
merged 15 commits into from
Jul 19, 2022
Merged

feat(tsc-sdk): add tsc-sdk for alert #125

merged 15 commits into from
Jul 19, 2022

Conversation

Qinyouzeng
Copy link
Contributor

No description provided.

@doddgu doddgu requested a review from zhenlei520 July 6, 2022 04:50
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)
Copy link
Contributor

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?

public class CallerProviderExtensionsTests
{
[TestMethod]
public async Task GetByBodyAsyncTest()
Copy link
Contributor

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()
Copy link
Contributor

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deal with similar issues

@Qinyouzeng Qinyouzeng requested a review from zhenlei520 July 15, 2022 07:40
Copy link
Contributor

@doddgu doddgu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@doddgu doddgu merged commit 89cf413 into main Jul 19, 2022
@doddgu doddgu deleted the feature/tsc-sdk branch July 19, 2022 03:02
@zhenlei520 zhenlei520 mentioned this pull request Jul 19, 2022
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants