public void ThrowArgumentNullException_WhenPhotoBytesParamIsNull()
        {
            //Arrange
            var imageFactoryMock      = new Mock <ImageFactory>(MockBehavior.Strict, new object[] { false });
            var imageProcessorService = new Services.ImageProcessorService(imageFactoryMock.Object);

            //Act && Assert
            Assert.Throws <ArgumentNullException>(() => imageProcessorService.ProcessImage(null, 1, 2, ".format", 3));
        }
        public void ThrowArgumentException_WhenFileFormatParamIsEmpty()
        {
            //Arrange
            var imageFactoryMock      = new Mock <ImageFactory>(MockBehavior.Strict, new object[] { false });
            var imageProcessorService = new Services.ImageProcessorService(imageFactoryMock.Object);

            //Act && Assert
            Assert.Throws <ArgumentException>(() => imageProcessorService.ProcessImage(new byte[] { 1 }, 1, 2, string.Empty, 3));
        }
        public void CreateObjectOfTypeIImageProcessorService_WhenParamsAreValid()
        {
            //Arrange
            var imageFactoryMock = new Mock <ImageFactory>(MockBehavior.Strict, new object[] { false });

            //Act
            var imageProcessorService = new Services.ImageProcessorService(imageFactoryMock.Object);

            //Assert
            Assert.IsInstanceOf <IImageProcessorService>(imageProcessorService);
        }