public BacklogItem_Modified_History_Tests() { _commandService = Container.GetService <IBacklogItemCommandService>() !; _commentCommandService = Container.GetService <IBacklogItemCommentCommandService>() !; _queryByIdService = Container.GetService <IBacklogItemByIdQueryService>() !; _userCmdService = Container.GetService <IUserCommandService>() !; }
private string _currentUserId = null !; // Must be initialised as the 1st step in each test public User_Update_Propagates_To_User_References_Tests() { _userCommandService = Container.GetService <IUserCommandService>() !; _backlogCommandService = Container.GetService <IBacklogItemCommandService>() !; _backlogQueryService = Container.GetService <IBacklogItemByIdQueryService>() !; _commentCommandService = Container.GetService <IBacklogItemCommentCommandService>() !; }
public Task <ActionResult <BacklogItemGetResponseBase> > GetById([FromServices] IBacklogItemByIdQueryService service, [FromRoute] string id, [FromQuery] BacklogItemCommentListGetRequest @params) => service.GetById(id, @params).ToActionResultOfT();
public BacklogItem_Crud_Tests() { _commandService = Container.GetService <IBacklogItemCommandService>() !; _queryService = Container.GetService <IBacklogItemByIdQueryService>() !; }
public Task <ListResponse <BacklogItemCommentListGetResponse> > GetComments([FromServices] IBacklogItemByIdQueryService service, [FromRoute] string backlogItemId, [FromQuery] BacklogItemCommentListGetRequest @params) => service.GetBacklogItemComments(backlogItemId, @params);
public CustomField_Delete_Updates_its_References_Tests() { _commandService = Container.GetService <ICustomFieldCommandService>() !; _commandTicketService = Container.GetService <IBacklogItemCommandService>() !; _queryTicketService = Container.GetService <IBacklogItemByIdQueryService>() !; }
public Task <ActionResult <BacklogItemGetResponseBase> > GetById([FromServices] IBacklogItemByIdQueryService service, [FromRoute] string id) => service.GetById(id).ToActionResultOfT();