private static void SetupSut( NodeCollection <IStat> nodeCollection, ICollection <IStat> addedStats, ICollection <IStat> removedStats) { var observableCalculator = new ObservableCalculator( Mock.Of <ICalculator>(c => c.ExplicitlyRegisteredStats == nodeCollection), ImmediateScheduler.Instance); var sut = new ExplicitlyRegisteredStatsObserver(observableCalculator); sut.StatAdded += (_, s) => addedStats.Add(s); sut.StatRemoved += (_, s) => removedStats.Add(s); sut.InitializeAsync(ImmediateScheduler.Instance).GetAwaiter().GetResult(); }
public AdditionalSkillStatApplier(ObservableCalculator calculator, IGemStatBuilders gemStatBuilders) { _calculator = calculator; _gemStatBuilders = gemStatBuilders; }