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

Fix bug #545 to create project via api and add test #546

Merged

Conversation

eduardogoncalves
Copy link
Contributor

No description provided.

@ardalis
Copy link
Owner

ardalis commented May 1, 2023

Thanks, didn't know you had a PR coming!

@ardalis
Copy link
Owner

ardalis commented May 1, 2023

Having a test is of course the right answer...

@ardalis ardalis merged commit 11243d2 into ardalis:main May 1, 2023
public async Task CreateProject()
{
string projectName = "Test Project 2";
var result = await _client.PostAndDeserializeAsync<ProjectDTO>("/api/projects", new StringContent(JsonConvert.SerializeObject(new CreateProjectDTO(projectName)), Encoding.UTF8, "application/json"));

Check warning

Code scanning / CodeQL

Missing Dispose call on local IDisposable

Disposable 'StringContent' is created but not disposed.
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.

2 participants