Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for FixedPriceWeekly provider #67

Merged
merged 4 commits into from
Nov 5, 2024
Merged

Conversation

MattJeanes
Copy link
Owner

The FixedPriceWeekly provider is a variant on the FixedPrice provider which allows you to set fixed pricing per time of day, but also per day of week and any combination of that.

* **EnergyProvider Enum**
  - Add `FixedPriceWeekly` to the `EnergyProvider` enum in `EnergyProvider.cs`.

* **Program.cs**
  - Add support for `FixedPriceWeekly` provider.
  - Bind `FixedPriceWeeklyOptions` and add `FixedPriceWeeklyService`.

* **FixedPriceWeeklyOptions**
  - Create `FixedPriceWeeklyOptions` class with properties for `TimeZone` and `Prices`.

* **FixedPriceWeeklyService**
  - Create `FixedPriceWeeklyService` class to handle weekly prices.
  - Implement parsing and handling of weekly prices.

* **FixedPriceWeeklyServiceTests**
  - Create `FixedPriceWeeklyServiceTests` class.
  - Add tests for parsing and handling weekly prices.
@MattJeanes MattJeanes merged commit b641f64 into main Nov 5, 2024
4 checks passed
@MattJeanes MattJeanes deleted the add-fixedpriceweekly branch November 5, 2024 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant