public override object Perform_Task()
        {
            using (var db = new TestDataRepositoryDataContext())
            {
                TestData results = (from t in db.TestDatas select t).FirstOrDefault();

                return results.Name.Trim();
            }
        }
        public void adds_a_row_to_the_table()
        {
            using (var dc = new TestDataRepositoryDataContext())
            {
                var result = (from d in dc.TestDatas select d);

                result.Count().IsEqualTo(1);
            }
        }
Beispiel #3
0
 public Developer()
 {
     using (var dc = new TestDataRepositoryDataContext())
         dc.spTruncate();
 }
        protected override void EstablishContext()
        {
            string connectionString = ConfigurationManager.ConnectionStrings["TestDb"].ConnectionString;

            _gateway = new DataGateway(connectionString);

            using (var dc = new TestDataRepositoryDataContext())
                dc.spTruncate();
        }