is your User class a struct? if so what happens when you change it to a class.
-- Mark Wilkinson Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Sunday, January 13, 2013 at 8:09 PM, Brent Pabst wrote: > Hi, > > I've got a repository pattern and unit of work pattern in place for my data > layer. I have another layer which performs most of the heavy lifting logic > and calls to the Unit of Work object in the data layer. I am building unit > tests for the logic layer. I just dumped Rhino Mocks into the project and > setup my project. All of the code validates but when I try to build the > project the compiler blows up. I've not seen the error below before. Any > ideas what I might be doing wrong? > > > The type 'Merlin.Data.Models.System.User' must be a reference type in order > > to use it as parameter 'T' in the generic type or method > > 'Merlin.Data.Interfaces.IRepository<T>' > > My class file is viewable here: https://gist.github.com/4527284 > > -- > You received this message because you are subscribed to the Google Groups > "Rhino.Mocks" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/rhinomocks/-/tEJJfYGuc88J. > To post to this group, send email to [email protected] > (mailto:[email protected]). > To unsubscribe from this group, send email to > [email protected] > (mailto:[email protected]). > For more options, visit this group at > http://groups.google.com/group/rhinomocks?hl=en. -- You received this message because you are subscribed to the Google Groups "Rhino.Mocks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rhinomocks?hl=en.
