Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
 public static IRenderingModifier CreateNewRenderingModifier(RenderingModifierSettings renderingModifierSettings)
 {
     return new RenderingModifier(renderingModifierSettings);
 }
Ejemplo n.º 3
0
 private void SetRenderingModifierSettings(RenderingModifierSettings renderingModifierSettings)
 {
     Assert.ArgumentNotNull(renderingModifierSettings, "renderingModifierSettings");
     Assert.ArgumentNotNullOrEmpty(renderingModifierSettings.Database, "renderingModifierSettings.Database");
     RenderingModifierSettings = renderingModifierSettings;
 }