Enterprise Library Test Guide - Willy .Net
Enterprise Library Test Guide - Willy .Net
Enterprise Library Test Guide - Willy .Net
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>Test</strong>ing the Application Block 25<br />
Priority<br />
High<br />
High<br />
High<br />
High<br />
High<br />
Medium<br />
Medium<br />
High<br />
Medium<br />
High<br />
Code test case<br />
Verify that the CacheFactory class uses the CacheManagerFactory class to create<br />
the CacheManager instance.<br />
Verify that the database backing store uses a named instance of the store and uses<br />
the Data Access Application Block to create that instance.<br />
Verify that the application block can use an instance name to create a CacheManager<br />
object.<br />
Verify that the application block can use a default instance name to create a Cache-<br />
Manager object.<br />
Verify that the performance counters and the event log that are required by the application<br />
block are installed during installation.<br />
Verify that the application block requests or demands the appropriate code access<br />
security permissions to access protected system resources and operations.<br />
Verify that the application block follows exception management best practices.<br />
Verify that the application block follows security best practices.<br />
Verify that the application block follows globalization best practices.<br />
Verify that the application block follows performance best practices.<br />
Verifying the <strong>Test</strong> Cases<br />
After you identify all the design test cases, you can verify that the design satisfies<br />
them. Table 3 lists how each of the design test cases was verified for the Caching<br />
Application Block.<br />
Table 3: Caching Application Block Design Verification<br />
Design test case Implemented? Feature that implements design<br />
Verify that the caching<br />
stores, expiration policies,<br />
and encryption providers<br />
are extensible.<br />
Yes<br />
New backing stores must implement either<br />
the BaseBackingStore abstract class or the<br />
IBackingStore interface.<br />
New expiration policies must implement<br />
the ICacheItemExpiration interface and the<br />
ICacheItemRefreshAction interface.<br />
New encryption providers must implement the<br />
IStorageEncryptionProvider interface.<br />
Verify that there is a consistent<br />
approach to creating<br />
caching stores, encryption<br />
providers, and CacheManager<br />
instances.<br />
Yes<br />
The BackingStoreCustomFactory class creates<br />
the backing store providers. The StorageEncryptionProviderCustomFactory<br />
creates<br />
the encryption providers. The CacheFactory<br />
class creates the CacheManager instances.<br />
continued