Skip to content

Commit 244623c

Browse files
committed
- tests fix
1 parent 362fa8b commit 244623c

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

Botticelli.Locations.Tests/Botticelli.Locations.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<ItemGroup>
1010
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
1111
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
12+
<PackageReference Include="Moq" Version="4.20.70" />
1213
<PackageReference Include="NUnit" Version="3.14.0" />
1314
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
1415
<PackageReference Include="RichardSzalay.MockHttp" Version="7.0.0" />

Botticelli.Locations.Tests/Integration/OsmLocationProviderTest.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22
using System.Collections.Generic;
33
using System.Threading.Tasks;
44
using Botticelli.Locations.Integration;
5-
using Botticelli.Locations.Models;
5+
using Botticelli.Locations.Options;
6+
using Microsoft.Extensions.Options;
67
using Microsoft.VisualBasic.CompilerServices;
8+
using Moq;
79
using NUnit.Framework;
810
using RichardSzalay.MockHttp;
911
using Shared;
12+
using Telegram.Bot.Types;
13+
using Location = Botticelli.Locations.Models.Location;
1014

1115
namespace Botticelli.Locations.Tests.Integration;
1216

@@ -20,7 +24,8 @@ public OsmLocationProviderTest()
2024
{
2125
var reverseGeocoder = new ReverseGeocoderMock();
2226
var forwardGeocoder = new ForwardGeocoderMock();
23-
_locationProvider = new OsmLocationProvider(reverseGeocoder, forwardGeocoder);
27+
var options = Mock.Of<IOptionsSnapshot<LocationsProcessorOptions>>();
28+
_locationProvider = new OsmLocationProvider(reverseGeocoder, forwardGeocoder, options);
2429
}
2530

2631
[Test]

Tests/Botticelli.Framework.Vk.Tests/MessagePublisherTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ namespace Botticelli.Framework.Vk.Tests;
1010
[TestFixture]
1111
public class MessagePublisherTests
1212
{
13+
public MessagePublisherTests() {}
14+
1315
[SetUp]
1416
public void Setup()
1517
{

0 commit comments

Comments
 (0)