public IAnswersService CreateInstance() { var answersDaoBuilder = new AnswersStubDao(); string dbConnection = ConfigurationManager.AppSettings["dbConnection"]; string collection = ConfigurationManager.AppSettings["evaCollection"]; var evaluationsDaoBuilder = new EvaluationsMongoDao(dbConnection, collection); var templatesDaoBuilder = new TemplatesStubDao(); return(new AnswersService(answersDaoBuilder, evaluationsDaoBuilder, templatesDaoBuilder)); }
public ITemplatesService CreateInstance() { var daoBuiler = new TemplatesStubDao(); return(new TemplatesService(daoBuiler)); }