using Heimdall.Domain.Entities; using Heimdall.Domain.Enums; using Shouldly; namespace Heimdall.Domain.Tests.Entities; public class DiscoveredStreamUrlTests { [Fact] public void Create_stream_should_set_all_properties() { var resultId = Guid.NewGuid(); var stream = new DiscoveredStreamUrl( resultId, "rtsp://192.168.1.1:554/stream1", StreamProtocol.Rtsp, ["H264", "PCMA"], 1920, 1080, 45, true, true); stream.DiscoveryResultId.ShouldBe(resultId); stream.Url.ShouldBe("rtsp://192.168.1.1:554/stream1"); stream.Protocol.ShouldBe(StreamProtocol.Rtsp); stream.Codecs.ShouldBe(["H264", "PCMA"]); stream.Width.ShouldBe(1920); stream.Height.ShouldBe(1080); stream.LatencyMs.ShouldBe(45); stream.IsMainStream.ShouldBeTrue(); stream.IsAlive.ShouldBeTrue(); } }