Apr 19 2011

Comment by Seth Spearman on Is it possible to generate a complete, working WPF/Silverlight/XAML application that emits best practices?

Chris, you said "choosing EF or NHibernate or some other ORM shouldn't impact the way data is gathered for a ViewModel". And yet that is exactly what I have been trying to figure out. If I use EF or NH or any other ORM, doesn't it have to implement IRepository interfaces in order swap in mosks for unit testing? And yet I have not found a simple way to do that. Specifically, how do you setup your DAL to use EF for example, but then swap in IRepository mocks for testing if EF does not implement IRepository pattern? I don't quite get? I'm probably making it too hard.
Apr 19 2011

Comment by Seth Spearman on Is it possible to generate a complete, working WPF/Silverlight/XAML application that emits best practices?

Chris, you said "choosing EF or NHibernate or some other ORM shouldn't impact the way data is gathered for a ViewModel". And yet that is exactly what I have been trying to figure out. If I use EF or NH or any other ORM, doesn't it have to implement IRepository interfaces in order swap in mosks for unit testing? And yet I have not found a simple way to do that. Specifically, how do you setup your DAL to use EF for example, but then swap in IRepository mocks for testing if EF does not implement IRepository pattern? I don't quite get? I'm probably making it too hard.
Apr 19 2011

Comment by Seth Spearman on Is it possible to generate a complete, working WPF/Silverlight/XAML application that emits best practices?

Chris, you said "choosing EF or NHibernate or some other ORM shouldn't impact the way data is gathered for a ViewModel". And yet that is exactly what I have been trying to figure out. If I use EF or NH or any other ORM, doesn't it have to implement IRepository interfaces in order swap in mosks for unit testing? And yet I have not found a simple way to do that. Specifically, how do you setup your DAL to use EF for example, but then swap in IRepository mocks for testing if EF does not implement IRepository pattern? I don't quite get? I'm probably making it too hard.
Apr 19 2011

Comment by Seth Spearman on Is it possible to generate a complete, working WPF/Silverlight/XAML application that emits best practices?

Finally, I am surprised that, given a database schema, there is not a tool that builds your entire app in a way that is testable as a starting point. I know it is not very TDD and my assumption is that the developer would wrap the generated code after the fact and after that would use a TDD approach. I know at some point we have to write code but the more we can focus on business logic and less on plumbing the better. Thanks for all you do. Seth
Apr 19 2011

Comment by Seth Spearman on Is it possible to generate a complete, working WPF/Silverlight/XAML application that emits best practices?

Finally, I am surprised that, given a database schema, there is not a tool that builds your entire app in a way that is testable as a starting point. I know it is not very TDD and my assumption is that the developer would wrap the generated code after the fact and after that would use a TDD approach. I know at some point we have to write code but the more we can focus on business logic and less on plumbing the better. Thanks for all you do. Seth
Apr 19 2011

Comment by Seth Spearman on Is it possible to generate a complete, working WPF/Silverlight/XAML application that emits best practices?

And for me, understanding a pattern is not enough (I am coming along in that regard). I want to understand a "workflow". Sort of a step by step process that will help me implement all the pieces in a way that is testable. In our discussions we have not much discussed integrate mock data and maybe we could focus on that next time.
Apr 19 2011

Comment by Seth Spearman on Is it possible to generate a complete, working WPF/Silverlight/XAML application that emits best practices?

And for me, understanding a pattern is not enough (I am coming along in that regard). I want to understand a "workflow". Sort of a step by step process that will help me implement all the pieces in a way that is testable. In our discussions we have not much discussed integrate mock data and maybe we could focus on that next time.
Apr 19 2011

Comment by Seth Spearman on Is it possible to generate a complete, working WPF/Silverlight/XAML application that emits best practices?

And for me, understanding a pattern is not enough (I am coming along in that regard). I want to understand a "workflow". Sort of a step by step process that will help me implement all the pieces in a way that is testable. In our discussions we have not much discussed integrate mock data and maybe we could focus on that next time.
Apr 19 2011

Comment by Seth Spearman on Is it possible to generate a complete, working WPF/Silverlight/XAML application that emits best practices?

Chris, at the heart of this question is wondering why, when someone has a database, would they EVER have to write data access code. And, of course, with EF you really DON'T have to write a DAL. But, in keeping up with what you have taught me, I have had trouble figuring out how to use EF AND still allow the ViewModel to be testable using a mock dal, like a respository. (Apparently it is a common criticism of EF from the ALT.NET crowed. )
Apr 19 2011

Comment by Seth Spearman on Is it possible to generate a complete, working WPF/Silverlight/XAML application that emits best practices?

Chris, at the heart of this question is wondering why, when someone has a database, would they EVER have to write data access code. And, of course, with EF you really DON'T have to write a DAL. But, in keeping up with what you have taught me, I have had trouble figuring out how to use EF AND still allow the ViewModel to be testable using a mock dal, like a respository. (Apparently it is a common criticism of EF from the ALT.NET crowed. )