public RecordsUpdater( IIlaroAdmin admin, IExecutingDbCommand executor, IFetchingRecords source, IProvidingUser user) { if (admin == null) { throw new ArgumentNullException(nameof(admin)); } if (executor == null) { throw new ArgumentNullException(nameof(executor)); } if (source == null) { throw new ArgumentNullException(nameof(source)); } if (user == null) { throw new ArgumentNullException(nameof(user)); } _admin = admin; _executor = executor; _source = source; _user = user; }
public DbCommandExecutor_() { var user = A.Fake<IProvidingUser>(); A.CallTo(() => user.Current()).Returns("Test"); _executor = new DbCommandExecutor(user); Admin.ConnectionStringName = ConnectionStringName; }
public RecordsCreator(IExecutingDbCommand executor) { if (executor == null) throw new ArgumentNullException("executor"); _executor = executor; }
public DbCommandExecutor_() { var user = A.Fake <IProvidingUser>(); A.CallTo(() => user.CurrentUserName()).Returns("Test"); _executor = new DbCommandExecutor(_admin, user); }
public DbCommandExecutor_() { var user = A.Fake <IProvidingUser>(); A.CallTo(() => user.Current()).Returns("Test"); _executor = new DbCommandExecutor(user); Admin.ConnectionStringName = ConnectionStringName; }
public RecordsDeleter( IExecutingDbCommand executor, IFetchingRecordsHierarchy hierarchySource) { if (executor == null) throw new ArgumentNullException("executor"); if (hierarchySource == null) throw new ArgumentNullException("hierarchySource"); _executor = executor; _hierarchySource = hierarchySource; }
public RecordsUpdater( IExecutingDbCommand executor, IFetchingRecords source) { if (executor == null) throw new ArgumentNullException("executor"); if (source == null) throw new ArgumentNullException("source"); _executor = executor; _source = source; }
public RecordsCreator(Notificator notificator, IExecutingDbCommand executor) { if (notificator == null) { throw new ArgumentNullException("notificator"); } if (executor == null) { throw new ArgumentNullException("executor"); } _notificator = notificator; _executor = executor; }
public RecordsCreator( IIlaroAdmin admin, IExecutingDbCommand executor, IProvidingUser user) { if (admin == null) throw new ArgumentNullException(nameof(admin)); if (executor == null) throw new ArgumentNullException(nameof(executor)); if (user == null) throw new ArgumentNullException(nameof(user)); _admin = admin; _executor = executor; _user = user; }
public RecordsUpdater( IExecutingDbCommand executor, IFetchingRecords source) { if (executor == null) { throw new ArgumentNullException("executor"); } if (source == null) { throw new ArgumentNullException("source"); } _executor = executor; _source = source; }
public RecordsDeleter( IExecutingDbCommand executor, IFetchingRecordsHierarchy hierarchySource) { if (executor == null) { throw new ArgumentNullException("executor"); } if (hierarchySource == null) { throw new ArgumentNullException("hierarchySource"); } _executor = executor; _hierarchySource = hierarchySource; }
public RecordsUpdater( IIlaroAdmin admin, IExecutingDbCommand executor, IFetchingRecords source, IProvidingUser user) { if (admin == null) throw new ArgumentNullException(nameof(admin)); if (executor == null) throw new ArgumentNullException(nameof(executor)); if (source == null) throw new ArgumentNullException(nameof(source)); if (user == null) throw new ArgumentNullException(nameof(user)); _admin = admin; _executor = executor; _source = source; _user = user; }
public RecordsCreator( IIlaroAdmin admin, IExecutingDbCommand executor, IProvidingUser user) { if (admin == null) { throw new ArgumentNullException(nameof(admin)); } if (executor == null) { throw new ArgumentNullException(nameof(executor)); } if (user == null) { throw new ArgumentNullException(nameof(user)); } _admin = admin; _executor = executor; _user = user; }
public DbCommandExecutor_() { var user = A.Fake<IProvidingUser>(); A.CallTo(() => user.CurrentUserName()).Returns("Test"); _executor = new DbCommandExecutor(_admin, user); }