Exemplo n.º 1
0
        public void Create()
        {
            ParticipantService participantService = new ParticipantService(fixture.context);
            Participant        participant        = participantService.GetAll().First();
            ActionService      actionService      = new ActionService(fixture.context);
            Action             action             = actionService.GetAll().First();

            ClosingRemarkService closingRemarkService = new ClosingRemarkService(fixture.context);
            int nClosingRemarksBefore = closingRemarkService.GetAll().Count();

            closingRemarkService.Create(participant, "text", action);
            int nClosingRemarksAfter = closingRemarkService.GetAll().Count();

            Assert.Equal(nClosingRemarksBefore + 1, nClosingRemarksAfter);
        }
Exemplo n.º 2
0
        public void GetQueryable()
        {
            ClosingRemarkService closingRemarkService = new ClosingRemarkService(fixture.context);

            IQueryable <ClosingRemark> closingRemarkQueryable = closingRemarkService.GetAll();

            Assert.True(closingRemarkQueryable.Count() > 0);
        }
Exemplo n.º 3
0
        protected int NumberOfClosingRemarks(Action action)
        {
            int remarks = _closingRemarkService
                          .GetAll()
                          .Where(a => a.Action == action)
                          .Count()
            ;

            return(remarks);
        }
Exemplo n.º 4
0
 public IQueryable <ClosingRemark> GetClosingRemarks()
 {
     return(_closingRemarkService.GetAll());
 }