public UpdateTests() { this.context = new MockMediaStackContext(); this.entityRepository = new Repository <Category>(this.context); this.entityRepository.Insert(new Category { ID = 1, Name = "Test Category" }); this.context.SaveChanges(); }
public DbSetPropertiesTests() { this.context = new MockMediaStackContext(); }
public GetTests() { this.context = new MockMediaStackContext(); this.entityRepository = new Repository <Category>(this.context); }