• 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

0.0
/src/KickStart.AutoMapper/AutoMapperServiceModule.cs
1
using AutoMapper;
2

3
using KickStart.Services;
4

5
namespace KickStart.AutoMapper;
6

7

8
/// <summary>
9
/// AutoMapper service module registration
10
/// </summary>
11
/// <seealso cref="KickStart.Services.IServiceModule" />
12
public class AutoMapperServiceModule : IServiceModule
13
{
14
    /// <summary>Register service injections with the specified <paramref name="services" /> container.</summary>
15
    /// <param name="services">The <see cref="T:KickStart.Services.IServiceRegistration"/> container to add the module services to.</param>
16
    /// <param name="data">The data dictionary shared with all starter modules.</param>
17
    public void Register(IServiceRegistration services, IDictionary<string, object> data)
18
    {
NEW
19
        data.TryGetValue(AutoMapperStarter.AutoMapperConfiguration, out var configurationValue);
×
20

NEW
21
        var configuration = configurationValue as IConfigurationProvider;
×
NEW
22
        if (configuration == null)
×
NEW
23
            return;
×
24

NEW
25
        services.RegisterSingleton(configuration);
×
NEW
26
        services.RegisterSingleton<IMapper>(s => new Mapper(s.GetService<IConfigurationProvider>()));
×
UNCOV
27
    }
×
28
}
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

© 2025 Coveralls, Inc