public void DeleteConfigShape() { ShapesConfigMockService shapesConfigMockService = new ShapesConfigMockService(); ValidationController validationController = new ValidationController(shapesConfigMockService); ShapeConfig shapeConfig = ((List <ShapeConfig>)(((OkObjectResult)validationController.GetShape()).Value))[0]; validationController.DeleteShape(shapeConfig.ShapeConfigID); shapeConfig = (ShapeConfig)(((OkObjectResult)validationController.GetShape(shapeConfig.ShapeConfigID)).Value); Assert.Null(shapeConfig); }