public void CapturePhotoCallCount()
        {
            // Arrange
            var callCount    = 0;
            var expected     = 3;
            var photoPath    = "path";
            var photoTexture = new Texture2D(1, 1);

            cameraCaptureSystem.CapturePhoto(Arg.Do <Action <string> >(cb =>
            {
                callCount++;
                cb(photoPath);
            }));
            database.LoadTextureFromLocalApp(photoPath, Arg.Do <Action <Texture2D> >(cb =>
            {
                callCount++;
                cb(photoTexture);
            }));
            cameraCapture.OnCapturePhoto += t =>
            {
                if (t == photoTexture)
                {
                    callCount++;
                }
            };

            // Act
            cameraCapture.CapturePhoto();

            // Assert
            Assert.AreEqual(expected, callCount);
        }
 public void CaptrueImage()
 {
     onCapture.Invoke();
     cameraCapture.CapturePhoto();
 }