public async Task <IActionResult> Register([FromBody] ValueMessageRequest request) { var command = _mapper.Map <RegisterContributionCommand>(request); await _bus.SendCommand(command); return(Ok()); }
public async Task Register_new_value() { //Arranger's var request = new ValueMessageRequest() { Value = 10, MemberId = Guid.NewGuid(), Name = "Space ghost", TypeContribution = 1, ContributionDate = DateTime.Now }; //Act try { var response = await BaseIntegrationTest.PostAsync(request, "Input/addValue"); } catch (Exception ex) { throw; } //Assent's //response.StatusCode.Should().Be(HttpStatusCode.OK); }