Esempio n. 1
0
        public void MailControllerMoq_deleteMailByUser()
        {
            var mock = new Mock <IMailRepository <Mail> >();

            mock.Setup(a => a.deleteMailByUser(1)).Returns(new Mail());
            var test = new MailController(mock.Object);

            Assert.IsNotNull(test.Delete(1));
        }