public SaveEntityCommand( GenericRepositories genericRepositories, IPersistenceTransaction persistenceTransaction, ServerCommandsUtility serverCommandsUtility) { _genericRepositories = genericRepositories; _persistenceTransaction = persistenceTransaction; _serverCommandsUtility = serverCommandsUtility; }
public QueryDataSourceCommand( IDataTypeProvider dataTypeProvider, GenericRepositories repositories, ServerCommandsUtility serverCommandsUtility) { _dataTypeProvider = dataTypeProvider; _repositories = repositories; _serverCommandsUtility = serverCommandsUtility; }
public static ReadCommandResult ExecuteReadCommand( this GenericRepository <IEntity> genericRepository, ReadCommandInfo readCommandInfo) { readCommandInfo.DataSource = typeof(ServerCommandsUtilityTest.SimpleEntity).FullName; var serverCommandsUtility = new ServerCommandsUtility(new ConsoleLogProvider(), new ApplyFiltersOnClientRead()); var commandResult = serverCommandsUtility.ExecuteReadCommand(readCommandInfo, genericRepository); return(commandResult); }
public ReadCommand( IDataTypeProvider dataTypeProvider, GenericRepositories repositories, ILogProvider logProvider, ServerCommandsUtility serverCommandsUtility) { _dataTypeProvider = dataTypeProvider; _repositories = repositories; _logger = logProvider.GetLogger(GetType().Name); _serverCommandsUtility = serverCommandsUtility; }
public SaveEntityCommand( IIndex<string, IWritableRepository> writableRepositories, GenericRepositories genericRepositories, IPersistenceTransaction persistenceTransaction, ServerCommandsUtility serverCommandsUtility) { _writableRepositories = writableRepositories; _genericRepositories = genericRepositories; _persistenceTransaction = persistenceTransaction; _serverCommandsUtility = serverCommandsUtility; }
public static QueryDataSourceCommandResult ExecuteQueryDataSourceCommand( this GenericRepository <IEntity> genericRepository, QueryDataSourceCommandInfo queryDataSourceCommandInfo) { queryDataSourceCommandInfo.DataSource = typeof(ServerCommandsUtilityTest.SimpleEntity).FullName; var commandInfo = queryDataSourceCommandInfo.ToReadCommandInfo(); var serverCommandsUtility = new ServerCommandsUtility(new ConsoleLogProvider(), new ApplyFiltersOnClientRead(), new DomainObjectModelMock()); var commandResult = serverCommandsUtility.ExecuteReadCommand(commandInfo, genericRepository); return(QueryDataSourceCommandResult.FromReadCommandResult(commandResult)); }