public void Execute_Ok()
        {
            var cr = new Mock <ICriteria>();

            _session.Setup(c => c.CreateCriteria <TimelogTypeModel>()).Returns(cr.Object);
            cr.Setup(c => c.List <TimelogTypeModel>())
            .Returns(new List <TimelogTypeModel>
            {
                new TimelogTypeModel {
                    TimelogTypeId = 2
                },
                new TimelogTypeModel {
                    TimelogTypeId = 4
                }
            });

            var lst = _query.Execute();

            Assert.NotNull(lst);
            Assert.Equal(2, lst.Count());
        }
 public IEnumerable <TimelogTypeModel> Execute(TimelogTypeGetAllCommand command)
 {
     command.ArgNotNull();
     return(_query.Execute());
 }