00001 using System; 00002 using System.Collections.Generic; 00003 using System.Text; 00004 00005 namespace MarekMailSystem2 00006 { 00007 public class DummyEmailTable : IEmailTable 00008 { 00009 private string TableName; 00010 public DummyEmailTable(string TableName) 00011 { 00012 this.TableName = TableName; 00013 } 00014 public void Save(Email email, string tag) 00015 { 00016 } 00017 00018 public Email Load(string tag) 00019 { 00020 return new Email( 00021 "", 00022 "Dummy email: " + tag, 00023 "This email is loaded from DummyEmailTable: "+TableName 00024 ); 00025 } 00026 } 00027 }