In C # there is Attribute, called DataSourceAttribute. It must be announced on every Mode again and again. Is it possible to declare it once at the class level, so I do not need to repeat myself. If so, how?
In DataDeviven UnitTesting data source must be specified with this attribute [DataSource (...),...]. There are about 10-15 of these methods, and I do not want to declare an attribute for each method. I would like to declare it once and all methods inherit it from using class level.
source
share