Exemplo n.º 1
0
        public void AddTest()
        {
            var mockDao    = new Mock <ITwitterAccountDao>();
            var repository = new TwitterAccountRepository();
            var newAccount = new TwitterAccount(0, new TwitterAccountCredentials("aaa", "bbb"), "world");

            repository.Add(newAccount);

            mockDao.Verify((dao) => dao.Add(It.IsAny <TwitterAccountDto>()), Times.Once());
        }