Select to view content in your preferred language

Why are there no interfaces for the components?

733
0
05-13-2010 10:14 AM
GlennGoodrich
Emerging Contributor
Hopefully this isn't too dumb of a question, but I am wondering why ESRI didn't use interfaces when defining the components?  Something like IMap or ILayer ITiledLayer, etc.  I want something like that b/c it makes those things easier to mock in my unit tests, while allow me to code to an interface. 

Now, I realize I can still mock these classes, but I have to explicitly mock them.  If we had interfaces, I could use ASMock's FlexUnit 4 test runner to implicitly mock.  These saves me tons of time and makes my tests less brittle.

Again, I could be missing the boat here (wouldn't be the first time) but thought I'd ask the question.

Thanks,
Glenn
Tags (2)
0 Kudos
0 Replies