Esempio n. 1
0
        public void GetById_Negative_ArgumentException()
        {
            //Arrange
            ICrewRepository crewRepository = new CrewRepository();
            ICrewService    crewService    = new CrewService(crewRepository);
            CrewController  crewController = new CrewController(crewService);

            const int NegativeId = -1;

            //Act & Assert
            Assert.ThrowsExceptionAsync <ArgumentException>(() => crewController.GetById(NegativeId));
        }