public Whatever Convert(WhateverModel source, Whatever destination, ResolutionContext context)
        {
            var whatever = new WhateverBuilder()
                           .WithId(source.Id ?? Guid.NewGuid())
                           .WithName(source.Name)
                           .WithTime(source.Time)
                           .WithType(source.Type)
                           .Build();

            foreach (var sourceThing in source.Things ?? new List <ThingModel>())
            {
                whatever.AddThing(context.Mapper.Map <ThingModel, Thing>(sourceThing));
            }

            return(whatever);
        }
        public static void Seed(this ModelBuilder modelBuilder)
        {
            var whateverBuilder = new WhateverBuilder();

            modelBuilder
            .Entity <Whatever>()
            .HasData(new List <Whatever>
            {
                whateverBuilder
                .WithId(Guid.NewGuid())
                .WithName(nameof(Whatever))
                .WithTime(new DateTime())
                .WithType("Some type")
                .Build(),

                whateverBuilder
                .WithId(Guid.NewGuid())
                .WithName(nameof(Whatever))
                .WithTime(DateTime.MaxValue)
                .WithType("Another type")
                .Build(),

                whateverBuilder
                .WithId(Guid.NewGuid())
                .WithName(nameof(Whatever))
                .WithTime(DateTime.Now)
                .WithType("More another type")
                .Build(),

                whateverBuilder
                .WithId(Guid.NewGuid())
                .WithName(nameof(Whatever))
                .WithTime(DateTime.Today)
                .WithType("Once more another type")
                .Build()
            });
        }