/// <summary> /// Mockable Constructor /// </summary> public DataStore(IImaging imaging, IContainer container, ITableStorage table, IStorageQueue queue, INaming naming, uint cacheControlDuration = 31536000) { if (null == imaging) { throw new ArgumentNullException("imaging"); } if (null == container) { throw new ArgumentNullException("container"); } if (null == table) { throw new ArgumentNullException("table"); } if (null == queue) { throw new ArgumentNullException("queue"); } if (null == naming) { throw new ArgumentNullException("naming"); } this.imaging = imaging; this.container = container; this.table = table; this.queue = queue; this.naming = naming; this.cacheControlDuration = cacheControlDuration < 0 ? 31536000 : cacheControlDuration; }
public XunitFrameworkProvider_2_0(IServiceProvider serviceProvider, IConfigurationSettings configurationSettings, INaming naming, IDirectory directory) : base(serviceProvider, configurationSettings, naming, directory, displayName: "xUnit.net 2.0", xunitPackageVersion: "2.0.0", xunitCoreAssemblyVersionPrefix: "2.0.0.", visualStudioRunnerPackageVersion: "2.1.0") { }
public FeatureInjectorPlugin(IContextImpl context) : base(context) { Rng = context.Plugin <IRngPlugin>().Get(NetfuserFactory.FeatureInjectorName); _injectableTypes = new List <InjectableType>(); _ns = context.Plugin <INaming>(); }
public MetadataManglerPlugin(IContextImpl context, MetadataManglerOptions options) : base(context) { _options = options; _root = new MetadataElement.Root(); _rng = context.Plugin <IRngPlugin>().Get(NetfuserFactory.MetadataManglerName); _ns = context.Plugin <INaming>(); }
/// <summary> /// Mockable Constructor /// </summary> public Preprocessor(IDataStore store, INaming naming) { if (null == store) { throw new ArgumentNullException("store"); } if (null == naming) { throw new ArgumentNullException("naming"); } this.store = store; this.naming = naming; }
public XunitSolutionManager(IServiceProvider serviceProvider, INaming naming, IDirectory directory, string xunitPackageVersion, string visualStudioRunnerPackageVersion) : base(serviceProvider, naming, directory) { this.serviceProvider = serviceProvider; this.xunitPackageVersion = xunitPackageVersion; this.visualStudioRunnerPackageVersion = visualStudioRunnerPackageVersion; var dte = (DTE)this.serviceProvider.GetService(typeof(SDTE)); solution = (Solution2)dte.Solution; }
public XunitFrameworkProvider(IServiceProvider serviceProvider, IConfigurationSettings configurationSettings, INaming naming, IDirectory directory, string displayName, string xunitPackageVersion, string xunitCoreAssemblyVersionPrefix, string visualStudioRunnerPackageVersion) : base(new XunitSolutionManager(serviceProvider, naming, directory, xunitPackageVersion, visualStudioRunnerPackageVersion), new XunitUnitTestProjectManager(serviceProvider, naming), new XunitUnitTestClassManager(configurationSettings, naming)) { this.displayName = displayName; this.xunitCoreAssemblyVersionPrefix = xunitCoreAssemblyVersionPrefix; }
/// <summary> /// Mockable Constructor /// </summary> public Processor(IDataStore store, IReadOnlyDictionary <string, IImageVersion> versions, IImaging imaging, INaming naming) { if (null == store) { throw new ArgumentNullException("store"); } if (null == versions) { throw new ArgumentNullException("versions"); } if (null == imaging) { throw new ArgumentNullException("imaging"); } if (null == naming) { throw new ArgumentNullException("naming"); } this.store = store; this.versions = versions; this.imaging = imaging; this.naming = naming; }
/// <summary> /// Initializes a new instance of the <see cref="NUnitUnitTestClassManager"/> class. /// </summary> /// <param name="configurationSettings">The configuration settings object to be used to determine how the test method is generated.</param> /// <param name="naming">The object to be used to give names to test projects.</param> public NUnitUnitTestClassManager(IConfigurationSettings configurationSettings, INaming naming) : base(configurationSettings, naming) { }
/// <summary> /// Initializes a new instance of the <see cref="NUnit3SolutionManager"/> class. /// </summary> /// <param name="serviceProvider">The service provider to use to get the interfaces required.</param> /// <param name="naming">The naming object used to decide how projects, classes and methods are named and created.</param> /// <param name="directory">The directory object to use for directory operations.</param> public NUnit3SolutionManager(IServiceProvider serviceProvider, INaming naming, IDirectory directory) : base(serviceProvider, naming, directory) { }
protected static string GetMessage(Guid id, INaming entity) { return(string.Format("{0} {1} {2}", entity.Nominative(), id, entity.NotFound())); }
public NUnitFrameworkProvider(IServiceProvider serviceProvider, IConfigurationSettings configurationSettings, INaming naming, IDirectory directory) : base(new NUnitSolutionManager(serviceProvider, naming, directory), new NUnitUnitTestProjectManager(serviceProvider, naming), new NUnitUnitTestClassManager(configurationSettings, naming)) { }
public AlreadyDeletedException(Guid id, INaming entity) : base(GetMessage(id, entity)) { }
public XunitUnitTestClassManager(IConfigurationSettings configurationSettings, INaming naming) : base(configurationSettings, naming) { }
public CantEditSystemObjectException(Guid id, INaming entity) : base(GetMessage(id, entity)) { }
protected static string GetMessage(Guid accountId, Guid id, INaming entity) { return(string.Format("{0} {1} {2} в аккаунте {3}", entity.Nominative(), id, entity.NotFound(), accountId)); }
/// <summary> /// Initializes a new instance of the <see cref="MSTestv2UnitTestProjectManager"/> class. /// </summary> /// <param name="serviceProvider">The service provider to use to get the interfaces required.</param> /// <param name="naming">The naming object used to decide how projects, classes and methods are named and created.</param> public MSTestv2UnitTestProjectManager(IServiceProvider serviceProvider, INaming naming) : base(serviceProvider, naming) { this.serviceProvider = serviceProvider; }
public AccessDeniedException(Guid id, INaming entity) : base(GetMessage(id, entity)) { }
public XunitUnitTestProjectManager(IServiceProvider serviceProvider, INaming naming) : base(serviceProvider, naming) { }
protected static string GetMessage(Guid id, INaming entity) { return(string.Format("Нет смысла удалять {0} {1}, который уже удалён", entity.Nominative(), id)); }
/// <summary> /// Initializes a new instance of the <see cref="NUnitUnitTestProjectManager"/> class. /// </summary> /// <param name="serviceProvider">The service provider to use to get the interfaces required.</param> /// <param name="naming">The naming object used to decide how projects, classes and methods are named and created.</param> public NUnitUnitTestProjectManager(IServiceProvider serviceProvider, INaming naming) : base(serviceProvider, naming) { }
protected static string GetMessage(Guid id, INaming entity) { return(string.Format("Нельзя редактировать системный {0} {1}", entity.Nominative(), id)); }
/// <summary> /// Initializes a new instance of the <see cref="MSTestv2SolutionManager"/> class. /// </summary> /// <param name="serviceProvider">The service provider to use to get the interfaces required.</param> /// <param name="naming">The naming object used to decide how projects, classes and methods are named and created.</param> /// <param name="directory">The directory object to use for directory operations.</param> public MSTestv2SolutionManager(IServiceProvider serviceProvider, INaming naming, IDirectory directory) : base(serviceProvider, naming, directory) { this.serviceProvider = serviceProvider; }
protected static string GetMessage(Guid id, INaming entity) { return(string.Format("Нет доступа к {0} {1}", entity.Dative(), id)); }
public xUnitFrameworkProvider(IServiceProvider serviceProvider, IConfigurationSettings configurationSettings, INaming naming, IDirectory directory) : base(new xUnitSolutionManager(serviceProvider, naming, directory), new xUnitUnitTestProjectManager(serviceProvider, naming), new xUnitUnitTestClassManager(configurationSettings, naming)) { this.serviceProvider = serviceProvider; }
public ObjectNotFoundException(Guid accountId, Guid id, INaming entity) : base(GetMessage(accountId, id, entity)) { }