示例#1
0
        public async Task GetByNameShouldReturnCorrectEvent()
        {
            await this.PopulateEvents();

            var service = new EventsService(
                this.eventsRepository,
                this.postsService,
                this.postRepository);

            var result = service.GetByName <TestEventViewModel>("eee");

            Assert.Equal(3, result.Id);
        }