public void MatchToEntityCommentsCountTest()
        {
            UserId identity = new UserId
            {
                Name     = "aName",
                Surname  = "aSurname",
                UserName = "******",
                Password = "******",
                Email    = "*****@*****.**"
            };
            Mock <User> user = new Mock <User>(identity, false);

            match.AddCommentary(new Commentary("test comment", user.Object));
            EncounterEntity converted = testMapper.ToEntity(match);

            Assert.AreEqual(converted.Commentaries.Count, 1);
        }
Exemple #2
0
 public void AddCommentaryTest()
 {
     match.AddCommentary(commentary1.Object);
     Assert.IsTrue(match.HasCommentary(commentary1.Object));
 }