public void EditNote_IfEditNote_EditsNoteSuccess()
        {
            // arrange
            var note = new NoteDTO();

            _loggerMock.Setup(_ => _.Info(It.IsAny <string>()));
            _noteServiceMock.Setup(_ => _.Update(note)).Returns(note);

            // act
            var statusInfo = _sut.EditNote(note);

            // assert
            _loggerMock.Verify(_ => _.Info(It.IsAny <string>()), Times.Exactly(2));
            _noteServiceMock.Verify(_ => _.Update(note), Times.Once);
            Assert.True(statusInfo.OperationStatus == OperationStatus.Success);
        }
        public NoteDTO EditNote(NoteDTO note)
        {
            var operationStatusInfo = _remoteNotesClient.EditNote(note);

            return(GetAttachedObject(operationStatusInfo));
        }