public void CanCreateLabel() { var labelRepository = new LocalRepository <Label>(); var clientRepository = new LocalRepository <Client>(); var controller = new LabelController(labelRepository, clientRepository); Assert.AreEqual(0, labelRepository.All().Count()); controller.Create("New Label"); Assert.AreEqual(1, labelRepository.All().Count()); Assert.IsTrue(labelRepository.All().Any(l => l.Name == "New Label")); }