public FluidBuildLocator WithAffectedProject(IProjectLocator project) { var clone = (FluidBuildLocator)this.MemberwiseClone(); clone.AffectedProject = project; return(clone); }
public void Setup() { projectLocator = Substitute.For<IProjectLocator>(); projectProvider = Substitute.For<IProjectProvider>(); projectProvider .LoadProjectDocument(Arg.Any<string>()) .Returns(XDocument.Parse(File.ReadAllText(Path.GetFullPath(Path.Combine(Environment.CurrentDirectory, @"..\..\..\SampleApp\SampleApp.csproj"))))); }
public async Task <IDetailedProject> GetProjectDetailsAsync(IProjectLocator projectLocator) { var request = new RestRequest("projects/{locator}", Method.GET); request.AddUrlSegment("locator", projectLocator.Serialize()); var response = await _teamCityClient.ExecuteRequestAsync <ProjectResponse>(request); return(_projectMapper.Map(response)); }
public FluidBuildLocator WithDimensions(IBuildTypeLocator buildType = null, IUserLocator user = null, IProjectLocator project = null, IProjectLocator affectedProject = null, string agentName = null, BuildStatus?status = null, bool?personal = null, bool?cancelled = null, RunningLocatorFlag?running = null, bool?pinned = null, int?maxResults = null, int?startIndex = null, IBuildLocator sinceBuild = null, DateTime?sinceDate = null, string[] tags = null, IBranchLocator branch = null ) { return(new FluidBuildLocator { BuildType = buildType, User = user, Project = project, AffectedProject = affectedProject, AgentName = agentName, Status = status, Personal = personal, Cancelled = cancelled, Running = running, Pinned = pinned, MaxResults = maxResults, StartIndex = startIndex, SinceBuild = sinceBuild, SinceDate = sinceDate, Tags = tags, Branch = branch }); }
public ProjectFileItems(Assembly assembly, IProjectProvider projectProvider = null, IProjectLocator projectLocator = null) : base(assembly, projectProvider, projectLocator) { }
/// <summary> /// Builds a dockerized .NET project and provides the docker image which can then be used in integration tests. /// </summary> /// <param name="name">The name of the project files (without extension) or the assembly name (if different) or the root namespace. /// Use like this: DockerfileImageProvider(nameof(YourProject))</param> /// <param name="projectLocator"></param> public DockerfileImageProvider(string name, IProjectLocator projectLocator = null) : this((projectLocator ?? new ProjectLocator()).GetDockerProject(name)) { }
public ProjectReferences(Assembly assembly, IProjectProvider projectProvider = null, IProjectLocator projectLocator = null) : base(assembly, projectProvider, projectLocator) { }
protected AbstractProjectData(Assembly assembly, IProjectProvider projectProvider = null, IProjectLocator projectLocator = null) { Assembly = assembly; ProjectProvider = projectProvider ?? new ProjectProvider(); ProjectLocator = projectLocator ?? new AssemblyProjectLocator(); }
public ProjectConventionData(IProjectLocator projectLocator) { this.projectLocator = projectLocator; }
public ProjectPropertyGroups(Assembly assembly, IProjectProvider projectProvider = null, IProjectLocator projectLocator = null) : base(assembly, projectProvider, projectLocator) { }