Ejemplo n.º 1
0
        public void RetreiveDnsReturnsDns()
        {
            DatabaseAdjustDns databaseAdjustDns = new DatabaseAdjustDns()
            {
                adapterName = "Local Area Connection",
                dnsIp       = "176.28.51.226",
                Schedule    = CreateScheduleAlwaysOnDoOnce(),
            };

            AdjustDns adjustDns = new AdjustDns(Connection, databaseAdjustDns);

            Administration.Option.Options.OptionReport report = new Administration.Option.Options.OptionReport(typeof(AdjustDnsTest));
            adjustDns.ExecuteOption(report);
            bool isSuccess = report.Success;

            DnsHelper.RemoveDns(databaseAdjustDns.adapterName);

            Assert.IsTrue(isSuccess);
        }
Ejemplo n.º 2
0
 public AdjustDns(MongoConnection connection, DataLayer.MongoData.Option.OptionBase databaseOption) : base(connection, databaseOption)
 {
     _databaseAdjustDns = (DatabaseAdjustDns)databaseOption;
 }