コード例 #1
0
        public void TrashedItem_CopiedFromTrashcan_IsUnexpired()
        {
            PutItemInTrash();

            var th = CreateTrashHandler();

            th.UseNavigationMode = true;
            th.RestoreValues(item);
            DeleteInterceptor interceptor = new DeleteInterceptor(persister, th);

            interceptor.Start();

            var copy = persister.Copy(item, root);

            copy.Parent.ShouldBe(root);
            copy[TrashHandler.DeletedDate].ShouldBe(null);
        }