public void SetUp() { var smartAgentDb = new SqlConnection(ConfigurationManager.ConnectionStrings["UPW"].ConnectionString); var kernel = new StandardKernel(new RepoTestsModule(smartAgentDb)); _repo = kernel.Get <IAsyncRepository <Upw> >(); _upwRepo = kernel.Get <IUpwAsyncRepository>(); InitialiseParams(); }
public UpwController(IAsyncRepository <Upw> repo, IUpwAsyncRepository upwRepo) { this._upwRepo = upwRepo; this._repo = repo; }