I'm (fairly) new to TDD, so be gentle!
I am using CodeFirst to create my application in C# using EF6 in VBS2015 Community.
I have an Interface created for my data access and am able to create a Mock Database in memory for Unit testing.
Each of my Models has a unique identifier column which is named Id (For example, UserID)
Ok, so when I add records to my Mock database, I need to have it create a new ID value for the record, as I reference this in later code. How do I do this with a generic set, when each table has a unique ID column? Do I have to mock out each table independently?
My database interface looks like this:
My Mock Database then looks like this: