Пример #1
0
        public HealingViewModelDataProvider(IEntityFrameworkRepository <StoredCombatStatistics> storedCombatStatisticsEntityFrameworkRepository, IHealingViewModelFactory healingViewModelFactory)
        {
            Guard.WhenArgument(storedCombatStatisticsEntityFrameworkRepository, nameof(IEntityFrameworkRepository <StoredCombatStatistics>)).IsNull().Throw();
            Guard.WhenArgument(healingViewModelFactory, nameof(IHealingViewModelFactory)).IsNull().Throw();

            this.storedCombatStatisticsEntityFrameworkRepository = storedCombatStatisticsEntityFrameworkRepository;
            this.healingViewModelFactory = healingViewModelFactory;
        }
Пример #2
0
        public LeaderboardHealingService(IHealingViewModelDataProvider healingViewModelDataProvider, IHealingViewModelFactory healingViewModelFactory, IPartialCircleSvgPathProvider partialCircleSvgPathProvider)
        {
            Guard.WhenArgument(healingViewModelDataProvider, nameof(IHealingViewModelDataProvider)).IsNull().Throw();
            Guard.WhenArgument(healingViewModelFactory, nameof(IHealingViewModelFactory)).IsNull().Throw();
            Guard.WhenArgument(partialCircleSvgPathProvider, nameof(IPartialCircleSvgPathProvider)).IsNull().Throw();

            this.healingViewModelDataProvider = healingViewModelDataProvider;
            this.healingViewModelFactory      = healingViewModelFactory;
            this.partialCircleSvgPathProvider = partialCircleSvgPathProvider;
        }