public void PostSurveyResponse() { using (var db = new PITCSurveyContext("PITCSurveyContext")) { // } }
public void TestImportSurveyJSON() { using (PITCSurveyContext db = new PITCSurveyContext()) { ModelConverter mc = new ModelConverter(db); var js = new JavaScriptSerializer(); SurveyModel Model = js.Deserialize <SurveyModel>(File.ReadAllText(".\\Data\\PITYouthCountSurvey.json")); Survey Survey = mc.ConvertToEntity(Model); Console.WriteLine(); } }
public SurveysControllerTests() { //DbConnection conn = DbConnectionFactory.CreateTransient(); //_db = new PITCSurveyContext(conn); _db = new PITCSurveyContext(); }
public ModelConverter(PITCSurveyContext db) { _db = db; }