public void GetServiceOrCreateInstance_CreateInstance()
        {
            var serviceProvider = new FakeServiceProvider();

            var activator = new CoconaLiteInstanceActivator();
            var obj       = activator.GetServiceOrCreateInstance(serviceProvider, typeof(GetServiceOrCreateInstance_CreateInstance_Target));

            obj.Should().NotBeNull();
        }
        public void GetServiceOrCreateInstance_FromService()
        {
            var serviceProvider = new FakeServiceProvider();

            serviceProvider.ValueByType[typeof(GetServiceOrCreateInstance_FromService_Target)] = new GetServiceOrCreateInstance_FromService_Target();

            var activator = new CoconaLiteInstanceActivator();
            var obj       = activator.GetServiceOrCreateInstance(serviceProvider, typeof(GetServiceOrCreateInstance_FromService_Target));

            obj.Should().Be(serviceProvider.ValueByType[typeof(GetServiceOrCreateInstance_FromService_Target)]);
        }