private RenderingModifier(RenderingModifierSettings renderingModifierSettings)
 {
     SetRenderingModifierSettings(renderingModifierSettings);
     _db = Database.GetDatabase(RenderingModifierSettings.Database);
     Assert.ArgumentCondition(_db != null, "renderingModifierSettings.Database", string.Format("Database {0} is not a valid database name", RenderingModifierSettings.Database));
 }
 public static IRenderingModifier CreateNewRenderingModifier(RenderingModifierSettings renderingModifierSettings)
 {
     return new RenderingModifier(renderingModifierSettings);
 }
 private void SetRenderingModifierSettings(RenderingModifierSettings renderingModifierSettings)
 {
     Assert.ArgumentNotNull(renderingModifierSettings, "renderingModifierSettings");
     Assert.ArgumentNotNullOrEmpty(renderingModifierSettings.Database, "renderingModifierSettings.Database");
     RenderingModifierSettings = renderingModifierSettings;
 }