public void AsAnonymous_ShouldReturnUnauthorizedAccessException() { var query = new GetVermittlerProfilQuery(); FluentActions.Invoking(async() => await SendAsync(query)).Should().Throw <UnauthorizedAccessException>(); }
public void AsNewVermittler_ShouldReturnNotFoundException() { RunAsNewVermittler(); var query = new GetVermittlerProfilQuery(); FluentActions.Invoking(async() => await SendAsync(query)).Should().Throw <NotFoundException>(); }