Exemplo n.º 1
0
        public void GetByID_Flow_Event()
        {
            var id     = 1;
            var events = new List <Event> {
                new Event {
                    Id = id
                }
            }.AsQueryable();

            var mockSet = MockHelper.MockDbSet(events);

            var result = EventExtension.GetById(mockSet.Object, id);

            Assert.AreEqual(id, result.Id);
        }