public void Create()
        {
            var idGenerator = IdGenerator.Create();

            Assert.AreEqual(1, idGenerator());
            Assert.AreEqual(2, idGenerator());
            Assert.AreEqual(3, idGenerator());
        }
Exemple #2
0
 public News()
 {
     Id = IdGenerator.Create <News>();
 }
        public static Specification <Word> StemEquals(string stem)
        {
            var id = IdGenerator.Create <Word>(stem);

            return(IdEquals(id));
        }
Exemple #4
0
 public Notification()
 {
     Id = IdGenerator.Create <Notification>();
 }
Exemple #5
0
 public override void GenerateNewId()
 {
     Id = IdGenerator.Create <Word>(Stem);
 }
Exemple #6
0
 public Announcement()
 {
     Id = IdGenerator.Create <Announcement>();
 }