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); } } }