public void CreateDicomServer_CreatesNewInstanceOfDicomServer()
        {
            // Arrange
            var mockProvider = new MockProvider();
            var serverFactory = new DicomServerFactory(mockProvider.GetSettingsProviderFake(), mockProvider.GetLoggerFake());

            // Act
            var server1 = serverFactory.CreateDicomServer((a, b) => new MemoryStream());
            var server2 = serverFactory.CreateDicomServer((a, b) => new MemoryStream());

            // Assert
            Assert.That(server1, Is.Not.SameAs(server2));
        }
        public void CreateDicomServer_NullDownloadAction_ThrowsException()
        {
            // Arrange
            var mockProvider = new MockProvider();
            var serverFactory = new DicomServerFactory(mockProvider.GetSettingsProviderFake(), mockProvider.GetLoggerFake());

            // Act + Assert
            Assert.That(() => serverFactory.CreateDicomServer(null), Throws.TypeOf<ArgumentNullException>());
        }