常用方法
常用方法
常用方法
常用方法
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); }