コード例 #1
0
        public static IOutfitEngineService CreateOutfitEngineService()
        {
            IStyleRuleRepository  srr = new StyleRuleRepository();
            IClosetRepository     cr  = new ClosetRepository();
            IIndexCreationService ois = new IndexCreationService(new ClosetRepository(), new ClosetOutfitRepository());
            IOutfitUpdaterService ous = new OutfitUpdaterService(new OutfitUpdaterRepository(),
                                                                 new PreCombinationRepository(), srr);

            IOutfitEngineProcessor processor = new OutfitEngineProcessor(srr, cr, ous, ois);


            IGarmentRepository       gr = new GarmentRepository();
            IFashionFlavorRepository fr = new FashionFlavorRepository();

            return(new OutfitEngineService(gr, cr, processor, fr));
        }
コード例 #2
0
        public void CreateIndexes()
        {
            IndexCreationService ics = new IndexCreationService(new ClosetRepository(), new ClosetOutfitRepository());

            ics.CreateIndexes();
        }
コード例 #3
0
        public void IndexPendingOutfits()
        {
            IIndexCreationService ois = new IndexCreationService(new ClosetRepository(), new ClosetOutfitRepository());

            ois.IndexPendingOutfits(new ClosetRepository().Get(96));
        }