public static PlayerEventRepository GetRepository(ContextMap contextMap, PlayerContextMap playerContextMap) { IEventConditionRepository eventConditionRepository = new EventConditionRepository(contextMap); IEventRepository eventRepository = EventRepository.GetRepository(contextMap); return(new PlayerEventRepository(eventRepository, eventConditionRepository, playerContextMap)); }
public static EventRepository GetRepository(ContextMap contextMap) { IEventConditionRepository eventConditionRepository = new EventConditionRepository(contextMap); IEventContentsRepository eventContentsRepository = new EventContentsRepository(contextMap); IRewardRepository rewardRepository = new RewardRepository(contextMap); return(new EventRepository(contextMap, eventConditionRepository, eventContentsRepository, rewardRepository)); }