public async Task Relevance() { var config = await this._configController.Add(); var project = await this.Add(config.SolutionId); var command = new ProjectRelevanceConfigCommand { Id = project.Id, ConfigIds = new[] { config.Id } }; var message = new HttpRequestMessage(HttpMethod.Post, $"{API}/{nameof(Relevance)}") .AddJsonContent(command); await this.HttpClient.SendAsync(message).ContinueWith(s => s.Result.AsResult()); var newProject = await this.Get(project.Id); //Assert.Equal(newProject.ConfigIds.Count(), command.ConfigIds.Count()); //Assert.All(newProject.ConfigIds, s => command.ConfigIds.Contains(s)); }
public async Task <object> Relevance(ProjectRelevanceConfigCommand command) { await this._mediator.Send <string>(command); return(ResponseResult.Success); }
public Task Handle(ProjectRelevanceConfigCommand command) { throw new NotImplementedException(); }