public CurrentImageHandler() : base()
 {
     CurrentBrightnessHandler = new BrightnessHandler(this);
     CurrentContrastHandler   = new ContrastHandler(this);
     CurrentCropHandler       = new CropHandler(this);
     CurrentFilterHandler     = new FilterHandler(this);
     CurrentGrayscaleHandler  = new GrayscaleHandler(this);
     CurrentFileHandler       = new ImageFileHandler(this);
     CurrentImgInsHandler     = new ImageInsertionHandler(this);
     CurrentInvHandler        = new InversionHandler(this);
     CurrentRotationHandler   = new RotationHandler(this);
     CurrentSepiaToneHandler  = new SepiaToneHandler(this);
     CurrentShapeInsHandler   = new ShapeInsertionHandler(this);
     CurrentTextInsHandler    = new TextInsertionHandler(this);
 }
        public void TestAddNewCrop()
        {
            DbConnecter dbC  = new DbConnecter();
            string      resp = dbC.connect();

            Assert.AreEqual("Done", resp);

            Crop aCrop = new Crop();

            aCrop.Name        = "Banana";
            aCrop.Quantity    = 40;
            aCrop.GrowthStage = "A";

            CropHandler cropHand = new CropHandler();
            int         resp2    = cropHand.addNewCrop(dbC.getConn(), aCrop);

            Assert.AreEqual(1, resp2);
        }