Пример #1
0
        public void GetExists()
        {
            ClosingRemarkService closingRemarkService = new ClosingRemarkService(fixture.context);
            ParticipantService   participantService   = new ParticipantService(fixture.context);
            Participant          participant          = participantService.GetAll().First();
            ActionService        actionService        = new ActionService(fixture.context);
            Action action = actionService.GetAll().First();

            ClosingRemark ClosingRemarkCreate = closingRemarkService.Create(participant, "text", action);

            ClosingRemark ClosingRemarkGet = closingRemarkService.GetClosingRemark(ClosingRemarkCreate.Id);

            Assert.Equal(ClosingRemarkCreate, ClosingRemarkGet);
        }
Пример #2
0
        public void GetDoesNotExist()
        {
            ClosingRemarkService closingRemarkService = new ClosingRemarkService(fixture.context);

            Assert.Throws <NotFoundInDBException>(() => closingRemarkService.GetClosingRemark("some_closingRemark_id_that_does_not_exist"));
        }