Skip to content

Commit

Permalink
refactor(mutitenancy): Move ITenantIdCommandStep to before the final …
Browse files Browse the repository at this point in the history
…step.
  • Loading branch information
ShawnAbshire committed Nov 13, 2023
1 parent ebb72a7 commit 77f503d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Client.UnitTests/DeploymentTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ public async Task ShouldSetTenantIdAsExpected()
};

// when
await ZeebeClient.NewDeployCommand().AddTenantId("1234").AddResourceFile(_demoProcessPath).Send();
await ZeebeClient.NewDeployCommand().AddResourceFile(_demoProcessPath).AddTenantId("1234").Send();

// then
var actualRequest = TestService.Requests[typeof(DeployResourceRequest)][0];
Expand Down
4 changes: 2 additions & 2 deletions Client/Api/Commands/IDeployResourceCommandStep1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

namespace Zeebe.Client.Api.Commands
{
public interface IDeployResourceCommandStep1 : ITenantIdCommandStep<IDeployResourceCommandBuilderStep2>
public interface IDeployResourceCommandStep1
{
/// <summary>
/// Add the given resource to the deployment.
Expand Down Expand Up @@ -70,7 +70,7 @@ IDeployResourceCommandBuilderStep2 AddResourceStream(
IDeployResourceCommandBuilderStep2 AddResourceFile(string filename);
}

public interface IDeployResourceCommandBuilderStep2 : IDeployResourceCommandStep1, IFinalCommandWithRetryStep<IDeployResourceResponse>
public interface IDeployResourceCommandBuilderStep2 : IDeployResourceCommandStep1, ITenantIdCommandStep<IDeployResourceCommandBuilderStep2>, IFinalCommandWithRetryStep<IDeployResourceResponse>
{
// the place for new optional parameters
}
Expand Down

0 comments on commit 77f503d

Please sign in to comment.