public void AddTest() { var eventStep = new TestEventStepDto().EventStep; var user = new TestUser().User; Assert.DoesNotThrowAsync(() => _eventStepUserLogic.Add(eventStep.Uuid, user)); }
public async Task <ActionResult> Add(Guid uuid) { try { UserHelper requestingUser = _controllerHelper.GetRequestingUser(this); await _eventStepUserLogic.Add(uuid, requestingUser); return(Ok()); } catch (DuplicateNameException) { return(StatusCode(StatusCodes.Status409Conflict)); } catch (Exception e) { _logLogic.Log(e); return(StatusCode(StatusCodes.Status500InternalServerError)); } }