コード例 #1
0
        public CalendarEntryAttachmentServiceTests()
        {
            this.storageBrokerMock  = new Mock <IStorageBroker>();
            this.loggingBrokerMock  = new Mock <ILoggingBroker>();
            this.dateTimeBrokerMock = new Mock <IDateTimeBroker>();

            this.calendarEntryAttachmentService = new CalendarEntryAttachmentService(
                storageBroker: this.storageBrokerMock.Object,
                loggingBroker: this.loggingBrokerMock.Object,
                dateTimeBroker: this.dateTimeBrokerMock.Object);
        }
コード例 #2
0
 public CalendarEntriesAttachmentsController(ICalendarEntryAttachmentService calendarEntryAttachmentService) =>
 this.calendarEntryAttachmentService = calendarEntryAttachmentService;