Skip to content

Commit a1798fb

Browse files
committed
Address code review remarks.
Signed-off-by: Rafael Câmara <[email protected]>
1 parent 8034b7f commit a1798fb

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

test/Dapr.Actors.Test/ActorIdTests.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,7 @@ public class ActorIdTests
115115
[InlineData(" ")]
116116
public void Initialize_New_ActorId_Object_With_Null_Or_Whitespace_Id(string id)
117117
{
118-
Assert.Throws<ArgumentException>(() =>
119-
{
120-
new ActorId(id);
121-
});
118+
Assert.Throws<ArgumentException>(() => new ActorId(id));
122119
}
123120

124121
[Theory]

test/Dapr.AspNetCore.Test/DaprClientBuilderTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ public void DaprClientBuilder_UsesPropertyNameCaseHandlingAsSpecified()
4343
[Fact]
4444
public void DaprClientBuilder_UsesThrowOperationCanceledOnCancellation_ByDefault()
4545
{
46-
var builder = new DaprClientBuilder();
47-
builder.Build();
46+
var builder = new DaprClientBuilder().Build();
47+
4848
Assert.True(builder.GrpcChannelOptions.ThrowOperationCanceledOnCancellation);
4949
}
5050

test/Dapr.Client.Test/StateApiTest.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -839,8 +839,7 @@ public async Task TrySaveStateAsync_ValidateNonETagErrorThrowsException()
839839
{
840840
var client = new MockClient();
841841

842-
await client.CallStateApi<string>()
843-
.Build();
842+
await client.CallStateApi<string>().Build();
844843

845844
var rpcException = new RpcException(new Status(StatusCode.Internal, "Network Error"));
846845

0 commit comments

Comments
 (0)