public RapportConcreteObserver(IFitnessRatingCalculatorStrategy calculatorStrategy, FitnessRatingControlConsumer fitnessRatingControlConsumer) { fitnessRatingCalculatorStrategy = calculatorStrategy; fitnessRatingControlConsumer.Attach(this); _fitnessRatingControlConsumer = fitnessRatingControlConsumer; }
public FitnessRatingControlConsumer(BlockingCollection <VO2DataContainer> vo2DataCollection, IFitnessRatingCalculatorStrategy fitnessRatingCalculatorStrategy) { _vo2DataCollection = vo2DataCollection; _fitnessRatingCalculatorStrategy = fitnessRatingCalculatorStrategy; isActive = false; }