public AnimalRepository(ContextType contextType) { switch (contextType) { case ContextType.Database: this.context = new AnimalSQLContext(); break; case ContextType.Test: this.context = new AnimalTestContext(); break; } }
public AnimalRepository(IAnimalContext context) { this._context = context; }
/// <summary> /// Configure the interface Context /// </summary> /// <param name="context"></param> public AnimalRepository(IAnimalContext context) { this.context = context; }
public AnimalRepo(IAnimalContext context) { this.ctx = context; }