public void TestImageCaptureAndStorage()
 {
     var context = new MyBigBroContext(Settings.Default.connectionString);
     var repository = new MyBigBroRepository();
     var location = new Location(repository);
     var geometry = new Geometry();
     repository.Context = context;
     location.MyBigBroRepository = repository;
     var pointInRangeOfWebCamId4Only = new Point { XCoord = 174.706, YCoord = -36.872 };
     if (location.IsPointWithinWebCamRadiusOfVisibility(pointInRangeOfWebCamId4Only))
     {
         var webCamControl = new WebCamControl(new AwsStorageServiceAgent(), repository, geometry);
         webCamControl.MyBigBroRepository = repository;
         webCamControl.StorageServiceAgent = new AwsStorageServiceAgent();
         var webCams = location.GetWebCamsWithinWebCamRadiusOfVisibility(pointInRangeOfWebCamId4Only);
         foreach (var webCam in webCams)
         {
             webCamControl.WebCam = webCam;
             webCamControl.WebCamImage = new WebCamImage();
             webCamControl.CapturedImage = new CapturedImage();
             webCamControl.CaptureCurrentImage(new WebCamDataRequest());
             webCamControl.StoreCapturedImage();
         }
     }
 }
        public void TestGetDistancePythagoras()
        {
            // test variables - 3/4/5 triangle test
            var x1 = 2.5;
            var y1 = 2.5;
            var x2 = 5.5;
            var y2 = 6.5;
            var geometry = new Geometry();

            // run test object
            var output = geometry.GetDistancePythagoras(x1, y1, x2, y2);

            // assert
            Assert.AreEqual(5.0, output);
            Assert.AreNotEqual(1.0, output);
        }