Skip to content

Add .GetOrder() and .GetOperation() to IProcessExtensions#113

Merged
1nf0rmagician merged 1 commit into
release/6from
feature/iprocessextensions-get-order-and-operation-number
Oct 13, 2025
Merged

Add .GetOrder() and .GetOperation() to IProcessExtensions#113
1nf0rmagician merged 1 commit into
release/6from
feature/iprocessextensions-get-order-and-operation-number

Conversation

@DosenSuppe

@DosenSuppe DosenSuppe commented Jul 30, 2025

Copy link
Copy Markdown
Member

Also added a UnitTest

Closes #367

@DosenSuppe DosenSuppe requested a review from a team July 30, 2025 09:19
@DosenSuppe DosenSuppe self-assigned this Jul 30, 2025
@DosenSuppe DosenSuppe added the enhancement New feature or request label Jul 30, 2025

@seveneleven seveneleven left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work. I like the comments!

Comment thread src/Moryx.ControlSystem/Processes/IProcessExtensions.cs Outdated
Comment thread src/Moryx.ControlSystem/Processes/IProcessExtensions.cs Outdated
@seveneleven seveneleven changed the title Add .GetOrder() and .GetOperation() to IProcessExtensions Draft: Add .GetOrder() and .GetOperation() to IProcessExtensions Jul 31, 2025
@seveneleven seveneleven changed the title Draft: Add .GetOrder() and .GetOperation() to IProcessExtensions Add .GetOrder() and .GetOperation() to IProcessExtensions Jul 31, 2025
@DosenSuppe DosenSuppe marked this pull request as draft July 31, 2025 07:27
var process = new Process { Recipe = recipe};

// Act
var orderNumber = process?.GetOrder();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even though this is a very simple test, I want to point out: It is generally recommended to only test one unit per unit test, i.e. split this test into to methods 😉

Comment thread src/Moryx.ControlSystem/Processes/IProcessExtensions.cs Outdated
Comment thread src/Moryx.ControlSystem/Processes/IProcessExtensions.cs Outdated

namespace Moryx.ControlSystem.Tests.Mocks;

public class DummyRecipe : ProductionRecipe, IOrderBasedRecipe

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember when porting to future: There is already a DummyRecipe in MOryx.ControlSystem.TestTools

@DosenSuppe DosenSuppe force-pushed the feature/iprocessextensions-get-order-and-operation-number branch from 528e108 to d6d936e Compare October 13, 2025 09:25
@DosenSuppe DosenSuppe changed the base branch from dev to release/6 October 13, 2025 09:26
@DosenSuppe DosenSuppe marked this pull request as ready for review October 13, 2025 09:26
@1nf0rmagician 1nf0rmagician merged commit 9686619 into release/6 Oct 13, 2025
8 checks passed
@1nf0rmagician 1nf0rmagician deleted the feature/iprocessextensions-get-order-and-operation-number branch October 13, 2025 10:18
@1nf0rmagician 1nf0rmagician restored the feature/iprocessextensions-get-order-and-operation-number branch October 13, 2025 10:18
@1nf0rmagician 1nf0rmagician deleted the feature/iprocessextensions-get-order-and-operation-number branch May 7, 2026 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add new extensions on IProcess

3 participants