Beispiel #1
0
        public void PersonController_CreateAnObject()
        {
            //Arrange
            string expected = "PersonsController";
            var    mock     = new Mock <IPersonService>();

            //Act
            PersonsController controller = new PersonsController(mock.Object);

            //Assert
            Assert.IsNotNull(controller);
            Assert.AreEqual(expected, controller.GetType().Name);
        }