public void CanAddRemoveAllFactoryImageProcessors()
        {
            var services = new ServiceCollection();
            IImageSharpBuilder builder = services.AddImageSharp();

            builder.AddProcessor(_ => new MockWebProcessor());
            Assert.Single(services, IsService <IImageWebProcessor, MockWebProcessor>);
            Assert.Single(services, IsServiceImplementationFactory <IImageWebProcessor, MockWebProcessor>);

            builder.ClearProcessors();
            Assert.DoesNotContain(services, IsService <IImageWebProcessor>);
        }
        public void CanAddRemoveAllImageProcessors()
        {
            var services = new ServiceCollection();

            IImageSharpBuilder builder = services.AddImageSharp()
                                         .AddProcessor <MockWebProcessor>();

            Assert.Contains(services, x => x.ImplementationType == typeof(MockWebProcessor));

            builder.ClearProcessors();

            Assert.DoesNotContain(services, x => x.ImplementationType == typeof(MockWebProcessor));
        }