This handles the instantiation of the correct IStatusMonitor for services of the Database ServiceType.
Inheritance: BaseStatusMonitorFactory
        public void GetMonitor_All()
        {
            var target = new DatabaseMonitorFactory();
            var sql = new Service()
            {
                Name = "LocalDatabase",
                Type = ServiceType.Database
            };
            var sqlMonitor = target.GetMonitor(sql);
            Assert.IsNotNull(sqlMonitor);
            Assert.IsInstanceOfType(sqlMonitor, typeof(SqlConnectionMonitor));

            var oracle = new Service()
            {
                Name = "OracleDatabase",
                Type = ServiceType.Database
            };
            var oracleMonitor = target.GetMonitor(oracle);
            Assert.IsNotNull(oracleMonitor);
            Assert.IsInstanceOfType(oracleMonitor, typeof(OracleConnectionMonitor));

            var odbc = new Service()
            {
                Name = "OdbcDatabase",
                Type = ServiceType.Database
            };
            var odbcMonitor = target.GetMonitor(odbc);
            Assert.IsNull(odbcMonitor);
        }
        public void IsApplicable_All()
        {
            var target = new DatabaseMonitorFactory();
            var database = new Service()
            {
                Name = "LocalDatabase",
                Type = ServiceType.Database
            };
            Assert.IsTrue(target.IsApplicable(database));

            var service = new Service()
            {
                Name = "Service",
                Type = ServiceType.Service
            };
            Assert.IsFalse(target.IsApplicable(service));

            var other = new Service()
            {
                Name = "Other",
                Type = ServiceType.Other
            };
            Assert.IsFalse(target.IsApplicable(other));
        }