Example #1
0
        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();
        }
Example #2
0
 public UpwController(IAsyncRepository <Upw> repo, IUpwAsyncRepository upwRepo)
 {
     this._upwRepo = upwRepo;
     this._repo    = repo;
 }