Skip to content

Commit

Permalink
feat: fix warnings for project
Browse files Browse the repository at this point in the history
  • Loading branch information
wmundev committed Oct 19, 2024
1 parent d66d4e0 commit 4840be8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public async Task CapitalizeFirstWordWithConjunctionTest()
var client = _factory.CreateClient();
var query = new Dictionary<string, string> { { "input", "hello world and goodbye world" } };

var response = await client.GetAsync(QueryHelpers.AddQueryString(path, query));
var response = await client.GetAsync(QueryHelpers.AddQueryString(path, query!));

Assert.Equal("Hello World and Goodbye World", await response.Content.ReadAsStringAsync());
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Net;
using System.Text.Json;
using System.Threading.Tasks;
using PhoneNumbers;
using weather_backend;
Expand Down Expand Up @@ -29,11 +30,11 @@ public async Task ValidatePhoneNumberTest()
var response = await client.GetAsync($"{path}/phone?phone={input}");

Assert.Equal(HttpStatusCode.OK, response.StatusCode);
var deserialisedJsonResponse = System.Text.Json.JsonSerializer.Deserialize<ValidatePhoneNumberModel>(await response.Content.ReadAsStringAsync(), Constants.CamelCaseJsonOptions);
var deserialisedJsonResponse = JsonSerializer.Deserialize<ValidatePhoneNumberModel>(await response.Content.ReadAsStringAsync(), Constants.CamelCaseJsonOptions);
Assert.NotNull(deserialisedJsonResponse);
Assert.Equal(PhoneNumber.Types.CountryCodeSource.UNSPECIFIED, deserialisedJsonResponse.CountryCode);
Assert.Equal(PhoneNumberType.MOBILE, deserialisedJsonResponse.NumberType);
Assert.Equal(true, deserialisedJsonResponse.PossibleNumber);
Assert.True(deserialisedJsonResponse.PossibleNumber);
}
}
}
6 changes: 3 additions & 3 deletions weather-application/weather-application.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FluentValidation.DependencyInjectionExtensions"/>
<PackageReference Include="Sodium.Core" Version="1.3.5"/>
<PackageReference Include="Microsoft.Extensions.Configuration"/>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
<PackageReference Include="Sodium.Core" Version="1.3.5" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion weather-repository/weather-repository.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration"/>
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 4840be8

Please sign in to comment.