public EntityController( Notificator notificator, IEntityService entityService, IValidateEntity validator, IFetchingRecords source, IFetchingRecordsHierarchy hierarchySource) { if (notificator == null) { throw new ArgumentNullException("notificator"); } if (entityService == null) { throw new ArgumentNullException("entityService"); } if (validator == null) { throw new ArgumentNullException("validator"); } if (source == null) { throw new ArgumentNullException("source"); } if (hierarchySource == null) { throw new ArgumentNullException("hierarchySource"); } _notificator = notificator; _entityService = entityService; _validator = validator; _source = source; _hierarchySource = hierarchySource; }
public EntityController( Notificator notificator, IEntityService entityService, IValidateEntity validator, IFetchingRecords source, IFetchingRecordsHierarchy hierarchySource) { if (notificator == null) throw new ArgumentNullException("notificator"); if (entityService == null) throw new ArgumentNullException("entityService"); if (validator == null) throw new ArgumentNullException("validator"); if (source == null) throw new ArgumentNullException("source"); if (hierarchySource == null) throw new ArgumentNullException("hierarchySource"); _notificator = notificator; _entityService = entityService; _validator = validator; _source = source; _hierarchySource = hierarchySource; }
public ValidateEntityInNotValidStateWtihExceptionStubbObjectTests() { _sut = new ValidateEntityInNotValidStateWtihExceptionStub(); }