public async Task <ActionResult> Delete(Guid uuid) { try { Guid userUuid = _controllerHelper.GetRequestingUser(this).Uuid; await _datepickerLogic.Delete(uuid, userUuid); return(Ok()); } catch (Exception e) { _logLogic.Log(e); return(StatusCode(StatusCodes.Status500InternalServerError)); } }
public void DeleteTest() { var datepicker = new TestDatepickerDto().DatepickerNoUsers; Assert.DoesNotThrowAsync(() => _datepickerLogic.Delete(datepicker.Uuid, new TestUser().User.Uuid)); }