• 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

75.0
/src/KickStart.EntityChange/EntityChangeExtensions.cs
1
using KickStart.EntityChange;
2

3
// ReSharper disable once CheckNamespace
4
namespace KickStart;
5

6
/// <summary>
7
/// KickStart Extension for EntityChange.
8
/// </summary>
9
public static class EntityChangeExtensions
10
{
11
    /// <summary>
12
    /// Use the KickStart extension to configure EntityChange.
13
    /// </summary>
14
    /// <param name="configurationBuilder">The configuration builder.</param>
15
    /// <returns>
16
    /// A fluent <see langword="interface"/> to configure KickStart.
17
    /// </returns>
18
    /// <example>Configure EntityChange on application startup
19
    /// <code><![CDATA[
20
    /// Kick.Start(config => config
21
    ///     .IncludeAssemblyFor<UserProfile>()
22
    ///     .UseEntityChange()
23
    ///     .LogLevel(TraceLevel.Verbose)
24
    /// );]]></code>
25
    /// </example>
26
    public static IConfigurationBuilder UseEntityChange(this IConfigurationBuilder configurationBuilder)
27
    {
28
        return UseEntityChange(configurationBuilder, null);
1✔
29
    }
30

31
    /// <summary>
32
    /// Use the KickStart extension to configure EntityChange.
33
    /// </summary>
34
    /// <param name="configurationBuilder">The configuration builder.</param>
35
    /// <param name="configure">The <see langword="delegate"/> to configure EntityChange options.</param>
36
    /// <returns>
37
    /// A fluent <see langword="interface"/> to configure KickStart.
38
    /// </returns>
39
    /// <example>Configure EntityChange on application startup
40
    /// <code><![CDATA[
41
    /// Kick.Start(config => config
42
    ///     .IncludeAssemblyFor<UserProfile>()
43
    ///     .UseEntityChange(c => c
44
    ///         .Configure(config =>
45
    ///         {
46
    ///             config.Entity<Order>(e =>
47
    ///             {
48
    ///                 e.Property(p => p.Total).Formatter(StringFormatter.Currency);
49
    ///             });
50
    ///         });
51
    ///     )
52
    ///     .LogLevel(TraceLevel.Verbose)
53
    /// );]]></code>
54
    /// </example>
55
    public static IConfigurationBuilder UseEntityChange(this IConfigurationBuilder configurationBuilder, Action<IEntityChangeBuilder> configure)
56
    {
57
        var options = new EntityChangeOptions();
1✔
58
        var service = new EntityChangeStarter(options);
1✔
59

60
        if (configure != null)
1!
61
        {
NEW
62
            var builder = new EntityChangeBuilder(options);
×
NEW
63
            configure(builder);
×
64
        }
65

66
        configurationBuilder.ExcludeAssemblyFor<EntityChangeStarter>();
1✔
67
        configurationBuilder.ExcludeAssemblyFor<global::EntityChange.EntityComparer>();
1✔
68
        configurationBuilder.Use(service);
1✔
69

70
        return configurationBuilder;
1✔
71
    }
72

73
}
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