public void Create() { var idGenerator = IdGenerator.Create(); Assert.AreEqual(1, idGenerator()); Assert.AreEqual(2, idGenerator()); Assert.AreEqual(3, idGenerator()); }
public News() { Id = IdGenerator.Create <News>(); }
public static Specification <Word> StemEquals(string stem) { var id = IdGenerator.Create <Word>(stem); return(IdEquals(id)); }
public Notification() { Id = IdGenerator.Create <Notification>(); }
public override void GenerateNewId() { Id = IdGenerator.Create <Word>(Stem); }
public Announcement() { Id = IdGenerator.Create <Announcement>(); }