public DbCommandExecutor(IProvidingUser user) { if (user == null) throw new ArgumentNullException("user"); _user = user; }
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_() { _user = A.Fake<IProvidingUser>(); A.CallTo(() => _user.CurrentUserName()).Returns("Test"); var executor = new DbCommandExecutor(_admin, _user); _creator = new RecordsCreator(_admin, executor, _user); }
public RecordsCreator_() { _user = A.Fake <IProvidingUser>(); A.CallTo(() => _user.CurrentUserName()).Returns("Test"); var executor = new DbCommandExecutor(_admin, _user); _creator = new RecordsCreator(_admin, executor, _user); }
public RecordsUpdater_() { _source = new RecordsSource(_admin, new Notificator()); _user = A.Fake<IProvidingUser>(); A.CallTo(() => _user.CurrentUserName()).Returns("Test"); var executor = new DbCommandExecutor(_admin, _user); _updater = new RecordsUpdater(_admin, executor, _source, _user); }
public RecordsUpdater_ManyToMany() { _source = new RecordsSource(_admin, new Notificator()); _user = A.Fake <IProvidingUser>(); A.CallTo(() => _user.CurrentUserName()).Returns("Test"); var executor = new DbCommandExecutor(_admin, _user); _updater = new RecordsUpdater(_admin, executor, _source, _user); }
public DbCommandExecutor(IProvidingUser user) { if (user == null) { throw new ArgumentNullException("user"); } _user = user; }
public DbCommandExecutor(IIlaroAdmin admin, IProvidingUser user) { if (admin == null) throw new ArgumentNullException(nameof(admin)); if (user == null) throw new ArgumentNullException(nameof(user)); _admin = admin; _user = user; }
public RecordsDeleter_() { _user = A.Fake <IProvidingUser>(); A.CallTo(() => _user.CurrentUserName()).Returns("Test"); var executor = new DbCommandExecutor(_admin, _user); _hierarchySource = new RecordsHierarchySource(_admin); _deleter = new RecordsDeleter(_admin, executor, _hierarchySource, _user); _source = new RecordsSource(_admin, new Notificator()); }
public FilterFactory(IProvidingUser user, IKnowTheTime clock) { if (user == null) throw new ArgumentNullException(nameof(user)); if (clock == null) throw new ArgumentNullException(nameof(clock)); _user = user; _clock = clock; }
public RecordsCreator_() { _user = A.Fake<IProvidingUser>(); A.CallTo(() => _user.Current()).Returns("Test"); var executor = new DbCommandExecutor(_user); _creator = new RecordsCreator(executor); Admin.AddEntity<Product>(); Admin.SetForeignKeysReferences(); Admin.ConnectionStringName = ConnectionStringName; _entity = Admin.EntitiesTypes.FirstOrDefault(x => x.Name == "Product"); }
public RecordsCreator_() { _user = A.Fake <IProvidingUser>(); A.CallTo(() => _user.Current()).Returns("Test"); var executor = new DbCommandExecutor(_user); _creator = new RecordsCreator(executor); Admin.AddEntity <Product>(); Admin.SetForeignKeysReferences(); Admin.ConnectionStringName = ConnectionStringName; _entity = Admin.EntitiesTypes.FirstOrDefault(x => x.Name == "Product"); }
public DbCommandExecutor(IIlaroAdmin admin, IProvidingUser user) { if (admin == null) { throw new ArgumentNullException(nameof(admin)); } if (user == null) { throw new ArgumentNullException(nameof(user)); } _admin = admin; _user = user; }
public FilterFactory(IProvidingUser user, IKnowTheTime clock) { if (user == null) { throw new ArgumentNullException(nameof(user)); } if (clock == null) { throw new ArgumentNullException(nameof(clock)); } _user = user; _clock = clock; }
public RecordsUpdater_() { _source = new RecordsSource(new Notificator()); _user = A.Fake<IProvidingUser>(); A.CallTo(() => _user.Current()).Returns("Test"); var executor = new DbCommandExecutor(_user); _updater = new RecordsUpdater(executor, _source); Admin.AddEntity<Product>(); Admin.SetForeignKeysReferences(); Admin.ConnectionStringName = ConnectionStringName; _productId = DB.Products.Insert(ProductName: "Product").ProductID; _entity = _source.GetEntityWithData(Admin.GetEntity("Product"), _productId.ToString()); }
public RecordsUpdater_() { _source = new RecordsSource(new Notificator()); _user = A.Fake <IProvidingUser>(); A.CallTo(() => _user.Current()).Returns("Test"); var executor = new DbCommandExecutor(_user); _updater = new RecordsUpdater(executor, _source); Admin.AddEntity <Product>(); Admin.SetForeignKeysReferences(); Admin.ConnectionStringName = ConnectionStringName; _productId = DB.Products.Insert(ProductName: "Product").ProductID; _entity = _source.GetEntityWithData(Admin.GetEntity("Product"), _productId.ToString()); }
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( 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; }