###BeginCaseStudy###
Case Study: 4
Fabrikam, Inc
Overview
Fabrikam, Inc. is a realtor in the United States.
Fabrikam grants its customers access to a web site, where they can search for houses for rent
and for sale. Its customers can enter basic requirements, such as location, number of rooms,
dimensions, and a price range. The web site displays a list of houses that meet the customers’
criteria. The customers can then view more details about each house and can add a listing to a
favorites list.
Requirements
Business Goals
Fabrikam plans to provide a more interactive experience for its customers. Fabrikam is
creating a video tour for each listing. The video tours can be used to visit the property
virtually.
Fabrikam plans to create a Windows Store app on Windows 8.1 RT and Windows 8.1 Pro
devices.
General Requirements
Fabrikam identifies the following general requirements for the app:
• The app interface must be available in English, Spanish, and French.
• The app must provide the customers with the ability to perform searches the
same way that the current web site does.
• It is expected that the customers will view more than 3,000 pictures annually.
The main page of the app must show a list of the last 10 pictures that were
viewed.
• If pictures are added to a listing that is in a customer’s favorites list, the
pictures must be downloaded automatically from Windows Azure. This must
occur if the app is suspended or not running.
Printing Requirements
Customers must be able to print the details of a listing from the details page by clicking a
button within the app.
You plan to add the following XAML markup to the listing details page:
<Button x:Name=”btnPrint Content=”Print” Click=”InvoicePrint” />.
Video Tour Requirements
Fabrikam identifies the following requirements for the video tours:
• Customers must be able to play the video tour on a different device by using a
button within the app.
• When a customer clicks the details of a listing, the app must start downloading
the video tour in the background.
• When the app starts, the app must verify whether there are any pending
downloads, and resume any paused downloads.
• The last five viewed video tours that are not on the customer’s favorites list
must be cached for subsequent viewing.
• Customers must be able to download all of the video tours for the properties
that they added to their favorites list.
• The property details page must contain a MediaElement control that will be
used to play the video tour of the property.
• When downloading the video tours, the app must remain responsive, and each
download must be processed on a separate thread.
Package.appxmanifest
###EndCaseStudy###
You create the following method in a Utility class: (Line numbers are included for reference only.)
You need to complete the code to meet the requirement for displaying the last 10 viewed pictures.
What code should you add to line 04? (More than one answer choice may achieve the goal. Select
the BEST answer.)
A.
StorageApplicationPermissions.FutureAccessList.Add(file, file.Name);
B.
StorageApplicationPermissions.MostlyRecentlyUsedl_ist.Add(file, file.Name);
C.
StorageItemMostRecentlyUsedList.Entries.Add(file, file.Name);
D.
StorageItemAccessList.Entries.Add(file, file.Name);
Explanation:
http://msdn.microsoft.com/enus/library/windows/apps/windows.storage.accesscache.storageapplicationpermissions.futureaccess
list.aspx
C
B.