コード例 #1
0
        public void HaalThemasOpTest()
        {
            //Arrange
            var service = new MockBeheerThemasService();

            //Act
            var controller = new BeheerThemasController(service);
            IList<Thema> actual = controller.GetThemaTable();
            var expected = service.GetThemaTable();

            //Assert
            Assert.AreEqual(expected[0], actual[0]);
            Assert.AreEqual(expected[1], actual[1]);

        }
コード例 #2
0
 public MockBeheerThemasController(MockBeheerThemasService service)
 {
     MockThemas = service.GetThemaTable() as List<Thema>;
 }