Esempio n. 1
0
 private void CheckEntityDeleted(int tcId)
 {
     try
     {
         _baseRepository.Get(tcId);
     }
     catch (RepositoryException exc)
     {
         exc.StatusCode.Should().Be(HttpStatusCode.NotFound);
     }
 }
        public void Get_EmptyStorage_ThrowsException()
        {
            Action getting = () => _baseRepository.Get(1);

            getting.Should().Throw <RepositoryException>().Where(exc => exc.StatusCode == HttpStatusCode.NotFound);
        }