示例#1
0
        public void AsAnonymous_ShouldReturnUnauthorizedAccessException()
        {
            var query = new GetVermittlerProfilQuery();

            FluentActions.Invoking(async() =>
                                   await SendAsync(query)).Should().Throw <UnauthorizedAccessException>();
        }
示例#2
0
        public void AsNewVermittler_ShouldReturnNotFoundException()
        {
            RunAsNewVermittler();

            var query = new GetVermittlerProfilQuery();

            FluentActions.Invoking(async() =>
                                   await SendAsync(query)).Should().Throw <NotFoundException>();
        }