Last active
June 6, 2017 19:43
-
-
Save zbartl/b8133809a9db86c32d3ee9105d8dd4eb to your computer and use it in GitHub Desktop.
aspnetcore integration testing - controller action
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[HttpPost] | |
[Authorize("Client")] | |
[Route("secret-thing")] | |
public async Task<IActionResult> SecretAction(SecretThing.Command command) | |
{ | |
command.LoginId = _userManager.GetUserId(User); | |
await _mediator.Send(command); | |
return RedirectToAction("Classified"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment