public void UpdateLearningLogItemLastAccessedDate_should_set_date_correctly()
        {
            // Given
            var addedDate   = new DateTime(2021, 11, 1);
            var updatedDate = new DateTime(2021, 11, 1);

            using (new TransactionScope())
            {
                var itemId = InsertLearningLogItem(
                    GenericDelegateId,
                    addedDate,
                    GenericLearningResourceReferenceId
                    );

                // When
                service.UpdateLearningLogItemLastAccessedDate(itemId, updatedDate);
                var result = service.GetLearningLogItem(itemId);

                // Then
                using (new AssertionScope())
                {
                    result.Should().NotBeNull();
                    result !.LastAccessedDate.Should().Be(updatedDate);
                }
            }
        }
 public bool Equals(FileMetadataList.FileMetadataRow row)
 {
     if (row.FileExtension == null)
     {
         row.FileExtension = "NULL";
     }
     return(FileName.Equals(row.FileName) &&
            FilePath.Equals(row.FilePath) &&
            CreatedDate.Equals(row.CreatedDate) &&
            LastAccessedDate.Equals(row.LastAccessedDate) &&
            LastModifiedDate.Equals(row.LastModifiedDate) &&
            FileTypeId.Equals(row.FileTypeId) &&
            FileExtension.Equals(row.FileExtension) &&
            FileSize.Equals(row.FileSize));
 }
        ///--------------------------------------------------------------------------------
        /// <summary>This method determines whether or not any metadata is
        /// different between the input instance and the current instance.</summary>
        ///
        /// <param name="inputRecentSolution">The recentsolution to compare metadata.</param>
        ///--------------------------------------------------------------------------------
        public bool IsIdenticalMetadata(RecentSolution inputRecentSolution)
        {
            if (RecentSolutionName.GetString() != inputRecentSolution.RecentSolutionName.GetString())
            {
                return(false);
            }
            if (RecentSolutionLocation.GetString() != inputRecentSolution.RecentSolutionLocation.GetString())
            {
                return(false);
            }
            if (LastAccessedDate.GetDateTime() != inputRecentSolution.LastAccessedDate.GetDateTime())
            {
                return(false);
            }

            #region protected
            #endregion protected

            return(true);
        }