Ejemplo n.º 1
0
 public NoteController(
     IMediator mediator,
     INoteQuery noteQuery,
     ICommentQuery commentQuery,
     IMergeRequestQuery mergeRequestQuery)
 {
     _mediator          = mediator;
     _noteQuery         = noteQuery;
     _commentQuery      = commentQuery;
     _mergeRequestQuery = mergeRequestQuery;
 }
Ejemplo n.º 2
0
    public MergeNoteStory(IntegrationFixture fixture)
    {
        _noteId = fixture.CreateDefaultNoteAsync(new NoteOptions {
            Status = NoteStatus.Published
        }).GetAwaiter()
                  .GetResult();

        _mediator          = fixture.GetService <IMediator>();
        _noteQuery         = fixture.GetService <INoteQuery>();
        _mergeRequestQuery = fixture.GetService <IMergeRequestQuery>();
    }
Ejemplo n.º 3
0
 public MergeRequestTests(IntegrationFixture fixture)
 {
     _fixture           = fixture;
     _mergeRequestQuery = fixture.GetService <IMergeRequestQuery>();
 }
Ejemplo n.º 4
0
 public MergeRequestController(IMediator mediator, IMergeRequestQuery mergeRequestQuery)
 {
     _mediator = mediator;
     _mergeRequestQuery = mergeRequestQuery;
 }