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)); }
public void CreateIndexes() { IndexCreationService ics = new IndexCreationService(new ClosetRepository(), new ClosetOutfitRepository()); ics.CreateIndexes(); }
public void IndexPendingOutfits() { IIndexCreationService ois = new IndexCreationService(new ClosetRepository(), new ClosetOutfitRepository()); ois.IndexPendingOutfits(new ClosetRepository().Get(96)); }