Building an ASP.Net Core 2.0 web application and can't figure out where to validate the AutoMapper configuration.

In my `ConfigureServices()` method, I have

```
services.AddAutoMapper();

```

And I'm registering my mappings in an Automapper Profile

```
public class MyAutomapperProfile : Profile
{
    public MyAutomapperProfile()
    {
        CreateMap<FooDto, FooModel>();
        CreateMap<BarDto, BarModel>();
    }
}

```

But it's not clear where to call

```
Mapper.Configuration.AssertConfigurationIsValid();

```