public void should_get_potential_energy() { var energyCalculator = new EnergyCalculator(); var potentialEnergy = energyCalculator.PotentialEnergy(10, 10); Assert.Equal(981, potentialEnergy); }
public GenerationReport(InputGenerationReport input) { _config = new ConfigurationBuilder().AddJsonFile("specflow.json").Build(); _xmlDataSourceProcessor = new XmlDataSourceProcessor(); _input = input; _generationOutput = new GenerationOutput(); _referenceData = new ReferenceData(); _calculatedTotalValue = new Totals(); _energyCalculator = new EnergyCalculator(); _maxEmissionGeneratorsDays = new List <DTOs.OutputGeneration.Day>(); _heatRates = new List <ActualHeatRates>(); _generationOutput = _xmlDataSourceProcessor.GetGenerationOutput(); }