• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

loresoft / KickStart / 17529667504

07 Sep 2025 02:14PM UTC coverage: 60.921%. Remained the same
17529667504

push

github

pwelter34
reformat code base

162 of 364 branches covered (44.51%)

Branch coverage included in aggregate %.

634 of 951 new or added lines in 72 files covered. (66.67%)

4 existing lines in 4 files now uncovered.

658 of 982 relevant lines covered (67.01%)

20.4 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

63.64
/src/KickStart.SimpleInjector/SimpleInjectorBuilder.cs
1
using SimpleInjector;
2

3
namespace KickStart.SimpleInjector;
4

5
/// <summary>
6
/// SimpleInjector configuration builder
7
/// </summary>
8
public class SimpleInjectorBuilder : ISimpleInjectorBuilder
9
{
10
    private readonly SimpleInjectorOptions _options;
11

12
    /// <summary>
13
    /// Initializes a new instance of the <see cref="SimpleInjectorBuilder"/> class.
14
    /// </summary>
15
    /// <param name="options">The options.</param>
16
    public SimpleInjectorBuilder(SimpleInjectorOptions options)
4✔
17
    {
18
        _options = options;
4✔
19
    }
4✔
20

21
    /// <summary>
22
    /// Sets the container accessor <see langword="delegate" />.  Resolve services under this <see langword="delegate" />.
23
    /// </summary>
24
    /// <param name="accessor">The container accessor <see langword="delegate" />.</param>
25
    /// <returns></returns>
26
    public ISimpleInjectorBuilder Container(Action<Container> accessor)
27
    {
28
        _options.Accessor = accessor;
2✔
29
        return this;
2✔
30
    }
31

32
    /// <summary>
33
    /// Sets the <see cref="Container" /> creator <see langword="delegate" />.
34
    /// </summary>
35
    /// <param name="creator">The <see cref="Container" /> creator.</param>
36
    /// <returns></returns>
37
    public ISimpleInjectorBuilder Creator(Func<Container> creator)
38
    {
NEW
39
        _options.Creator = creator;
×
NEW
40
        return this;
×
41
    }
42

43
    /// <summary>
44
    /// Sets the initialize container <see langword="delegate" />.  Register services under this <see langword="delegate" />.
45
    /// </summary>
46
    /// <param name="initializer">The initialize container <see langword="delegate" />.</param>
47
    /// <returns></returns>
48
    public ISimpleInjectorBuilder Initialize(Action<Container> initializer)
49
    {
50
        _options.Initializer = initializer;
2✔
51
        return this;
2✔
52
    }
53

54
    /// <summary>
55
    /// Verifies the Container with the specified <paramref name="options" />.
56
    /// </summary>
57
    /// <param name="options">Specifies how the container should verify its configuration.</param>
58
    /// <returns></returns>
59
    public ISimpleInjectorBuilder Verify(VerificationOption? options)
60
    {
NEW
61
        _options.VerificationOption = options;
×
NEW
62
        return this;
×
63
    }
64
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc