public void Services_AreSingleton()
        {
            // Arrange

            // Act
            var descriptor = new TenantScopedServiceDescriptor(typeof(Person), typeof(Person));

            // Assert
            Assert.Equal(ServiceLifetime.Singleton, descriptor.Lifetime);
        }
        public void Constructor_SetsProperties()
        {
            // Arrange
            Func <IServiceProvider, object> factory = sp => null;

            // Act
            var descriptor1 = new TenantScopedServiceDescriptor(typeof(Person), typeof(Person));
            var descriptor2 = new TenantScopedServiceDescriptor(typeof(Person), factory);

            // Assert
            Assert.Equal(typeof(Person), descriptor1.ServiceType);
            Assert.Equal(typeof(Person), descriptor1.ImplementationType);
            Assert.Equal(factory, descriptor2.ImplementationFactory);
        }