public RequestsController(BasicDeskDbContext dbContext, IMapper mapper, UserManager <User> userManager, RequestService requestService, RequestSorter requestSorter) { this.dbContext = dbContext; this.mapper = mapper; this.userManager = userManager; this.requestService = requestService; this.requestSorter = requestSorter; }
private void CheckSortOrder(IReadOnlyList <Request> expectedOrder) { var result = new RequestSorter().Sort( AllocationDate, this.requests.ToArray(), this.allocations.ToArray(), this.reservations.ToArray(), this.systemParameter); Assert.Equal(expectedOrder, result); }
public RequestsController(UserManager <User> userManager, IRequestService requestService, ICategoriesService categoriesService, AttachmentService <RequestAttachment> attachmentService, RequestSorter requestSorter, IAlerter alerter, IFileUploader fileUploader) : base(attachmentService) { this.userManager = userManager; this.requestService = requestService; this.categoriesService = categoriesService; this.attachmentService = attachmentService; this.requestSorter = requestSorter; this.alerter = alerter; this.fileUploader = fileUploader; }
/// <summary> /// NotificationItemの配信を登録します。 /// </summary> /// <param name="rx"></param> /// <param name="receiver"></param> /// <returns></returns> public static IDisposable Subscribe(IObservable<NotificationItem> rx, RequestSorter receiver) { return receiver.CreateSubscrive(rx); }
/// <summary> /// MessageItemの配信を登録します。 /// </summary> /// <param name="rx"></param> /// <param name="receiver"></param> /// <returns></returns> public static IDisposable Subscribe(this IObservable<MessageItem> rx, RequestSorter receiver) { return receiver.Register(rx); }