public void LinqtoSQLTest() { var awDataClassesDataContext = AWDataClassesDataContext.GetNew(); TestShow(awDataClassesDataContext.AddressTypes); TestSerialize(awDataClassesDataContext.AddressTypes.OrderByDescending(at => at.AddressTypeID)); }
public void LargeSerializableQueryTest() { var awDataClassesDataContext = AWDataClassesDataContext.GetNew(); TestShow(awDataClassesDataContext.Addresses); // TestSerialize(MetaSingletons.MetaData.PurchaseOrderHeader); // TestShow(MetaSingletons.MetaData.PurchaseOrderHeader); }
public void CanSaveTest() { DataContext dataContext = AWDataClassesDataContext.GetNew(); var target = new DataEditorLinqtoSQLPersister(dataContext); Assert.IsTrue(target.CanSave(typeof(AddressType))); Assert.IsFalse(target.CanSave(typeof(DataEditorLinqtoSQLPersisterTest))); }
public void EditLinqtoSQLInDataGridViewTest() { var awDataClassesDataContext = AWDataClassesDataContext.GetNew(); // awDataClassesDataContext. = DbUtils.ActualConnectionString; //awDataClassesDataContext.Connection.ConnectionString TestEditInDataGridView(awDataClassesDataContext.AddressTypes); var addressTypesQuery = awDataClassesDataContext.AddressTypes.OrderByDescending(at => at.AddressTypeID); addressTypesQuery.ShowInGrid(awDataClassesDataContext); //TestEditInDataGridView(awDataClassesDataContext.); var actual = awDataClassesDataContext.AddressTypes.ShowInGrid(); Assert.AreEqual(awDataClassesDataContext.AddressTypes, actual); }