public static void AddDependencies(IServiceCollection serviceCollection)
        {
            serviceCollection.AddInstancesOfGenericType(typeof(StoreConverter).Assembly, typeof(IToDomainConverter <,>));
            serviceCollection.AddInstancesOfNonGenericType(typeof(IStoreFactory).Assembly, typeof(IStoreFactory));

            StoreSectionConverterTests.AddDependencies(serviceCollection);
        }
        public static Entities.Store GetSource(IStore destination, CommonFixture commonFixture)
        {
            var sections = destination.Sections
                           .Select(s => StoreSectionConverterTests.GetSource(s, commonFixture))
                           .ToList();

            return(new Entities.Store
            {
                Id = destination.Id.Value,
                Name = destination.Name,
                Deleted = destination.IsDeleted,
                Sections = sections
            });
        }