public void TestInitialize() { _tableControllerShadow = new TableControllerShadow(); _tableExists = (x, session) => true; _updateMethod = (x, y, z) => { }; _session = Substitute.For<ISession>(); _sessionMethod = () => _session; _methodGroup = new UpdateTableDescriptionMethodGroup(_tableExists, _updateMethod, _sessionMethod); }
public void TestInitialize() { _tableControllerShadow = new TableControllerShadow(); _session = Substitute.For<ISession>(); _sessionMethod = () => _session; _queryForColumns = (x, session) => new List<ColumnItemResult>(); _searchForTable = (tableId, session) => _tableInformationResult; _methodGroup = new RetrieveTableInformationMethodGroup(_searchForTable, _queryForColumns, _sessionMethod); _tableInformationResult = new TableInformationResult {Id = RandomTool.RandomInt32()}; }