public void ReturnsEditContextForChaining()
        {
            var editContext = new EditContext(new object());
            var returnValue = editContext.AddDataAnnotationsValidation();

            Assert.Same(editContext, returnValue);
        }
        public void ObsoleteApiReturnsEditContextForChaining()
        {
            var editContext = new EditContext(new object());

#pragma warning disable 0618
            var returnValue = editContext.AddDataAnnotationsValidation();
#pragma warning restore 0618
            Assert.Same(editContext, returnValue);
        }