Beispiel #1
0
        public void TestCategories()
        {
            service.Setup(x => x.GetCategories()).Returns(new ResponseModel <List <Category> > {
                Error = false, Entity = categories
            });

            var controller = new ValuesController(service.Object);
            var list       = controller.GetCategories().Entity;

            Assert.IsTrue(list.Count == 3);
            Assert.IsFalse(list.All(c => c.IsPinned == true));
        }