public void DeleteNote_IfDeleteNote_DeletesNoteSuccess()
        {
            // arrange
            const int noteId = 1;

            _loggerMock.Setup(_ => _.Info(It.IsAny <string>()));
            _noteServiceMock.Setup(_ => _.Delete(noteId)).Returns(true);

            // act
            var statusInfo = _sut.DeleteNote(noteId);

            // assert
            _loggerMock.Verify(_ => _.Info(It.IsAny <string>()), Times.Exactly(2));
            _noteServiceMock.Verify(_ => _.Delete(noteId), Times.Once);
            Assert.True(statusInfo.OperationStatus == OperationStatus.Success);
            Assert.True(statusInfo.AttachedObject);
        }
        public bool DeleteNote(int noteId)
        {
            var operationStatusInfo = _remoteNotesClient.DeleteNote(noteId);

            return(GetAttachedObject(operationStatusInfo));
        }