예제 #1
0
        public void ServiceTypeServiceDescriptionExistsIsTrue()
        {
            A.CallTo(() => _repository.DescriptionExists(string.Empty)).WithAnyArguments().Returns(true);
            _service = new ServiceTypeService(_repository);

            var retour = _service.DescriptionExists("toto");

            Assert.AreEqual(true, retour);
        }
예제 #2
0
 public bool DescriptionExists(string description)
 {
     return(_repository.DescriptionExists(description));
 }