2026-07-23 15:08:09 +00:00
|
|
|
using Heimdall.Infrastructure.Services.Discovery;
|
2026-10-11 21:23:16 +02:00
|
|
|
using Heimdall.Mdns;
|
2026-07-23 15:08:09 +00:00
|
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
|
using NSubstitute;
|
|
|
|
|
using Shouldly;
|
|
|
|
|
|
|
|
|
|
namespace Heimdall.Infrastructure.Tests;
|
|
|
|
|
|
|
|
|
|
public class MdnsProbeServiceTests
|
|
|
|
|
{
|
|
|
|
|
private readonly ILogger<MdnsProbeService> _logger = Substitute.For<ILogger<MdnsProbeService>>();
|
2026-10-11 21:23:16 +02:00
|
|
|
private readonly IMdnsClient _mdnsClient = Substitute.For<IMdnsClient>();
|
2026-07-23 15:08:09 +00:00
|
|
|
|
|
|
|
|
[Fact]
|
|
|
|
|
public void Constructor_CreatesService()
|
|
|
|
|
{
|
2026-10-11 21:23:16 +02:00
|
|
|
var service = new MdnsProbeService(Substitute.For<IMdnsClient>(), Substitute.For<ILogger<MdnsProbeService>>());
|
2026-07-23 15:08:09 +00:00
|
|
|
|
|
|
|
|
service.ShouldNotBeNull();
|
|
|
|
|
}
|
|
|
|
|
}
|