public async Task AllByTypeAsyncShouldRerutnCorectedOrderedAndCorectTypeNewsArticles() { //Arrange var dbOptions = new DbContextOptionsBuilder <UndergroundStationDbContext>() .UseInMemoryDatabase("UndergroundStationTestDb") .Options; var db = new UndergroundStationDbContext(dbOptions); var newsService = new NewsService(db); //Act var result = await newsService.AllByTypeAsync(ArticleType.Interviews.ToString(), 1); //Assert result .Should() .Match (r => r.ElementAt(0).Id == 2 && r.ElementAt(1).Id == 1) .And .HaveCount(2); }