public void HasService_WhenServiceTypeIsNull_Throws()
            {
                var registry       = new FakeRegistry();
                var serviceLocator = new RegistryServiceLocator(registry);

                Assert.Throws <ArgumentNullException>(() => serviceLocator.HasService(null));
            }
            public void HasService_WhenServiceTypeNotRegistered_ReturnsFalse()
            {
                var registry       = new FakeRegistry();
                var serviceLocator = new RegistryServiceLocator(registry);

                var result = serviceLocator.HasService(typeof(DummyService));

                Assert.IsFalse(result);
            }
            public void HasService_WhenServiceTypeRegisteredButDisabled_ReturnsFalse()
            {
                var registry = new FakeRegistry();
                var serviceLocator = new RegistryServiceLocator(registry);
                registry.RegisterDisabledService(typeof(DummyService));

                var result = serviceLocator.HasService(typeof(DummyService));

                Assert.IsFalse(result);
            }
            public void HasService_WhenServiceTypeIsNull_Throws()
            {
                var registry = new FakeRegistry();
                var serviceLocator = new RegistryServiceLocator(registry);

                Assert.Throws<ArgumentNullException>(() => serviceLocator.HasService(null));
            }