< Summary

Class:JekyllBlogCommentsAzure.Startup
Assembly:JekyllBlogCommentsAzure
File(s):C:\Users\Teknikaali\Source\Repos\jekyll-blog-comments\JekyllBlogCommentsAzure\Startup.cs
Covered lines:6
Uncovered lines:0
Coverable lines:6
Total lines:21
Line coverage:100% (6 of 6)
Covered branches:2
Total branches:2
Branch coverage:100% (2 of 2)

Coverage History

Metrics

MethodCyclomatic complexity NPath complexity Sequence coverage Branch coverage
Configure(...)20100%100%

File(s)

C:\Users\Teknikaali\Source\Repos\jekyll-blog-comments\JekyllBlogCommentsAzure\Startup.cs

#LineLine coverage
 1using System;
 2using Microsoft.Azure.Functions.Extensions.DependencyInjection;
 3
 4// To register the Configure method we need to specify the type name used during startup
 5[assembly: FunctionsStartup(typeof(JekyllBlogCommentsAzure.Startup))]
 6
 7namespace JekyllBlogCommentsAzure
 8{
 9    public class Startup : FunctionsStartup
 10    {
 11        public override void Configure(IFunctionsHostBuilder builder)
 212        {
 213            if (builder is null)
 114            {
 115                throw new ArgumentNullException(nameof(builder));
 16            }
 17
 118            builder.Services.AddPostCommentService();
 119        }
 20    }
 21}