Beispiel #1
0
        public void GetAllAdministrator()
        {
            var mockAdministrator = new Mock <IAdministratorLogic>(MockBehavior.Strict);

            mockAdministrator.Setup(u => u.GetAll()).Returns(adminList);
            var controller = new AdministratorController(mockAdministrator.Object);

            Assert.AreEqual(new OkObjectResult("").ToString(), controller.GetAll().ToString());
        }