internal static void SetExecutionDate(this ExecutedFile targetClass, DateTime value) { var po = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject(targetClass); try { po.SetFieldOrProperty("ExecutionDate", value); } catch (System.MissingMethodException missingMethodException) { throw new System.NotSupportedException("ExecutionDate with requested parameters is not found. Rerun code generation.", missingMethodException); } }
internal static DatabaseVersion Getversion(this ExecutedFile targetClass) { var po = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject(targetClass); try { return((DatabaseVersion)po.GetFieldOrProperty("version")); } catch (System.MissingMethodException missingMethodException) { throw new System.NotSupportedException("version with requested parameters is not found. Rerun code generation.", missingMethodException); } }