Exemplo n.º 1
0
        public void TestMethod1()
        {
            string           conn = ConfigurationManager.ConnectionStrings["ConnStr"].ConnectionString;
            ISocratesContext ctx  = SocratesContextFactory.GetContext(conn);

            var courses = ctx.GetAllCourses().ToList();

            Assert.IsNotNull(courses);
        }
Exemplo n.º 2
0
        public BaseController()
        {
            string conn = WebConfigurationManager.ConnectionStrings["ConnStr"].ConnectionString;

            ctx = SocratesContextFactory.GetContext(conn);
        }