Enterprise Library Test Guide - Willy .Net
Enterprise Library Test Guide - Willy .Net
Enterprise Library Test Guide - Willy .Net
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
130<br />
<strong>Enterprise</strong> <strong>Library</strong> <strong>Test</strong> <strong>Guide</strong><br />
No. Scenario<br />
26 The Tracer class marks the start and end of a transaction.<br />
27 The LoggingDatabase.SQL and CreateLoggingDb.Cmd methods create logging databases.<br />
(The <strong>Enterprise</strong> <strong>Library</strong> Windows Installer creates these methods.)<br />
28 The LogWriterFactory class creates LogWriter objects.<br />
29 The LogSource class specifies the trace listeners that log the messages.<br />
30 The TracerInstrumentationListener class instruments Tracer class tracing operations.<br />
Identify the External Dependencies<br />
External dependencies are other components in the <strong>Enterprise</strong> <strong>Library</strong> or external<br />
resources such as databases and mail servers that the Logging Application Block can<br />
use. If a malicious user misuses any of these dependencies then the security of the<br />
application block may be compromised. The data direction matters because “push”<br />
and “pull” have different security implications. The Logging Application Block<br />
receives data that moves in the “pull” direction. For example, it receives configuration<br />
information from the <strong>Enterprise</strong> <strong>Library</strong> Core. It is important to know that this<br />
information is reliable. The application block can also “push” information to output<br />
sources, such as a database or event log. It is important to know that the output<br />
source will not be corrupted by the information.<br />
Table 4 lists the Logging Application Block external dependencies.<br />
Table 4: Logging Application Block External Dependencies<br />
External<br />
No. Dependencies<br />
1 <strong>Enterprise</strong><br />
<strong>Library</strong> core<br />
2 Data Access<br />
Application<br />
Block<br />
Descriptions<br />
The <strong>Enterprise</strong> <strong>Library</strong> Core reads and writes configuration<br />
information that is used by the Logging<br />
Application Block.<br />
The Logging Application Block can use the Data<br />
Access Application Block to log messages to a<br />
database.<br />
3 SMTP server The Logging Application Block can use an SMTP<br />
server to e-mail log messages.<br />
4 File system The Logging Application Block can use the file<br />
system to save log messages in a flat file.<br />
5 Database The Logging Application Block can save log messages<br />
to a database.<br />
6 Message<br />
queuing<br />
The Logging Application Block uses message<br />
queuing to distribute log messages. The application<br />
block can send these messages to a remote<br />
computer.<br />
7 Event log The Logging Application Block can save log messages<br />
to the event log.<br />
Data<br />
Direction<br />
Pull<br />
Push<br />
Push<br />
Push<br />
Push<br />
Push<br />
Push<br />
Trusted?<br />
Yes<br />
Yes<br />
Yes<br />
Yes<br />
Yes<br />
Yes<br />
Yes