public void Set_complete_by_date_should_update_db()
        {
            // Given
            var addedDate         = new DateTime(2021, 11, 1);
            var newCompleteByDate = new DateTime(3022, 7, 29);

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

                // When
                service.SetCompleteByDate(itemId, newCompleteByDate);
                var modifiedItem = service.GetLearningLogItem(itemId);

                // Then
                using (new AssertionScope())
                {
                    modifiedItem !.DueDate.Should().Be(newCompleteByDate);
                }
            }
        }
Exemplo n.º 2
0
 public void SetCompleteByDate(int learningLogItemId, DateTime?completeByDate)
 {
     learningLogItemsDataService.SetCompleteByDate(learningLogItemId, completeByDate);
 }