Skip to content

Commit

Permalink
fix new version
Browse files Browse the repository at this point in the history
  • Loading branch information
brnmnz committed Jan 22, 2024
1 parent 807352b commit 0097014
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/GenericCallerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public async Task Call_ShouldReturnContent()
};

// Act
var result = await GenericCaller.Call(type, action, content, config);
var result = await ApiBrasilCommunity.ApiBrasilCaller(type, action, content, config);

// Assert
result.Should().NotBeNull();
Expand All @@ -40,15 +40,15 @@ public async Task Call_ShouldThrowArgumentNullException()
// Arrange
var type = "exampleType";
var action = "exampleAction";
object? content = null; // Definir content como null para gerar ArgumentNullException
object content = null; // Definir content como null para gerar ArgumentNullException

Check warning on line 43 in Tests/GenericCallerTests.cs

View workflow job for this annotation

GitHub Actions / build

Converting null literal or possible null value to non-nullable type.

Check warning on line 43 in Tests/GenericCallerTests.cs

View workflow job for this annotation

GitHub Actions / build

Converting null literal or possible null value to non-nullable type.
var config = new ApiBrasilConfiguration
{
DeviceToken = "exampleDeviceToken",
Authorization = "exampleAuthorization"
};

// Act
Func<Task> func = async () => await GenericCaller.Call(type, action, content, config);
Func<Task> func = async () => await ApiBrasilCommunity.ApiBrasilCaller(type, action, content, config);

Check warning on line 51 in Tests/GenericCallerTests.cs

View workflow job for this annotation

GitHub Actions / build

Possible null reference argument for parameter 'content' in 'Task<string> ApiBrasilCommunity.ApiBrasilCaller(string type, string action, object content, ApiBrasilConfiguration config)'.

Check warning on line 51 in Tests/GenericCallerTests.cs

View workflow job for this annotation

GitHub Actions / build

Possible null reference argument for parameter 'content' in 'Task<string> ApiBrasilCommunity.ApiBrasilCaller(string type, string action, object content, ApiBrasilConfiguration config)'.

// Assert
await func.Should().ThrowAsync<ArgumentNullException>();
Expand Down

0 comments on commit 0097014

Please sign in to comment.