Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7796831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:29:28+00:00 2026-06-01T23:29:28+00:00

I have unit tests to run my code as follows: MyActivity myActivity = new

  • 0

I have unit tests to run my code as follows:

             MyActivity myActivity = new MyActivity ()
            {
                Input1 = "value1"
            };

            WorkflowInvoker.Invoke(myActivity);
            /// do assert

MyActivity also has Input2 as an InArgument.
The problem I am having is that Input1 and Input2 have validaiton arguments as follows.

[OverloadGroup("Input1")]
[RequiredArgument]
public InArgument<string> Input1{ get; set; }

[OverloadGroup("Input2")]
[RequiredArgument]
public InArgument<string> Input2{ get; set; }

This is because I only want one value required.

I am receiving the following error :

The root activity’s argument settings are incorrect. Either fix the workflow definition or supply input values to fix these errors:
‘MyActivity’: The following overload groups are configured: Input1, Input2. Only one overload group should have its arguments configured.
Parameter name: program

I am not sure what I am doing wrong as I did just set just one of the 2 activities?
Perhaps there is a better way to unit test the WFs.
The activity does work correctly when called normally inside a workflow service.

Any assistance would be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T23:29:30+00:00Added an answer on June 1, 2026 at 11:29 pm

    I managed to ‘solve’ it by wrapping the activity inside a sequence and then invoking the sequence activity.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing unit tests for some of my code and have run into
I want to run some Python unit tests from my Maven module. I have
I have been writing unit tests using NUnit and Moq with my Silverlight code
Summary: I can run unit tests and code-coverage, but the report only includes NUnit
We have a decent set of unit tests on our code and those unit
I want to run code coverage in my unit tests. The issue is that
We have some unit tests which compile and run fine in Eclipse 3.4, but
I have a set of Unit Tests run in parallel ( this is important,
I am modifying a Nant build script to run some unit tests. I have
I have dozens of unit tests, and I'd like to fix the code I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.