From 42b9900bad74b40c34e4ce3d70a341ac47a90f63 Mon Sep 17 00:00:00 2001 From: brunohashimoto Date: Mon, 22 Jan 2024 19:56:20 -0400 Subject: [PATCH] fix new version --- ApiBrasil/Domain/ApiBrasilConfiguration.cs | 2 +- ApiBrasil/GenericCaller.cs | 4 ++-- Tests/GenericCallerTests.cs | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ApiBrasil/Domain/ApiBrasilConfiguration.cs b/ApiBrasil/Domain/ApiBrasilConfiguration.cs index 4da9efd..f7c680d 100644 --- a/ApiBrasil/Domain/ApiBrasilConfiguration.cs +++ b/ApiBrasil/Domain/ApiBrasilConfiguration.cs @@ -1,4 +1,4 @@ -namespace ApiBrasil.Domain +namespace ApiBrasilNugget.Domain { public class ApiBrasilConfiguration { diff --git a/ApiBrasil/GenericCaller.cs b/ApiBrasil/GenericCaller.cs index 2bd0389..15cc026 100644 --- a/ApiBrasil/GenericCaller.cs +++ b/ApiBrasil/GenericCaller.cs @@ -1,7 +1,7 @@ using RestSharp; -using ApiBrasil.Domain; +using ApiBrasilNugget.Domain; -namespace ApiBrasil +namespace ApiBrasilNugget { public static class ApiBrasil { diff --git a/Tests/GenericCallerTests.cs b/Tests/GenericCallerTests.cs index 69ef5c0..de7389e 100644 --- a/Tests/GenericCallerTests.cs +++ b/Tests/GenericCallerTests.cs @@ -1,7 +1,7 @@ using Xunit; using FluentAssertions; -using ApiBrasil; -using ApiBrasil.Domain; +using ApiBrasilNugget; +using ApiBrasilNugget.Domain; namespace Tests { @@ -26,7 +26,7 @@ public async Task Call_ShouldReturnContent() }; // Act - var result = await ApiBrasilCommunity.ApiBrasilCaller(type, action, content, config); + var result = await ApiBrasil.Caller(type, action, content, config); // Assert result.Should().NotBeNull(); @@ -40,7 +40,7 @@ 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 var config = new ApiBrasilConfiguration { DeviceToken = "exampleDeviceToken", @@ -48,7 +48,7 @@ public async Task Call_ShouldThrowArgumentNullException() }; // Act - Func func = async () => await ApiBrasilCommunity.ApiBrasilCaller(type, action, content, config); + Func func = async () => await ApiBrasil.Caller(type, action, content, config); // Assert await func.Should().ThrowAsync();