public void DataSource()
        {
            IDataSourceInformation dataSource;

            dataSource = DataSourceInformationTest.GetOneDataSourceInformation();
            GetDataContext(true).DataSource = dataSource;
            Assert.AreEqual(dataSource, GetDataContext().DataSource);
        }
        public void Constructor()
        {
            DataContext dataContext = null;

            dataContext = new DataContext(DataSourceInformationTest.GetOneDataSourceInformation(),
                                          LocaleTest.GetOneLocale());
            Assert.IsNotNull(dataContext);
        }
 private DataContext GetDataContext(Boolean refresh)
 {
     if (_dataContext.IsNull() || refresh)
     {
         _dataContext = new DataContext(DataSourceInformationTest.GetOneDataSourceInformation(),
                                        LocaleTest.GetOneLocale());
     }
     return(_dataContext);
 }
 public static DataContext GetOneDataContext()
 {
     return(new DataContext(DataSourceInformationTest.GetOneDataSourceInformation(),
                            LocaleTest.GetOneLocale()));
 }