I'm trying to write a bunch of unit tests for my classes, most of which are persisted.
In my test class I have a bunch of member variables that contain the data that I'm pushing into my objects which are then created in the repository.
One of the first tests is to create a record in the repository based on the data in the member variables. I then retrieve the UniqueIdentifier from the datastore and set it to one of the member variables.
In one of the later tests, I want to use the UniqueIndentifier to retrieve the record from the datastore but the value is null, as if the value has not been set!
By the way, I'm using MSTest (the default visual studio one).
If anyone has any suggestions I'd greatly appreciate them.