public void AddNamedInstance(AddEnumNamedNonGenericKey name, Type type)
        {
            var inst = _serviceProvider.GetNamedService(type, name);

            Assert.NotNull(inst);
            Assert.Equal(name.ToString("F"), inst.GetType().GetProperty("Name")?.GetValue(inst));
        }
        public void AddNamedByImplementationType(AddEnumNamedNonGenericKey name, Type type)
        {
            var inst = _serviceProvider.GetNamedService(typeof(ITestService), name);

            Assert.NotNull(inst);
            Assert.Equal(type, inst.GetType());
        }