public async Task ChecksIfGetArticleByIdReturnsCorrectResult()
        {
            var options = new DbContextOptionsBuilder <ElectricTravelDbContext>()
                          .UseInMemoryDatabase(databaseName: "ArticlesTestDb").Options;

            using var dbContext = new ElectricTravelDbContext(options);

            var user = new ElectricTravelUser
            {
                UserName = "******",
            };

            var articleToAdd = new Article
            {
                ShortDescription = "asdasd",
                Content          = "asdasdad",
                CreatedBy        = user,
                Title            = "asdas",
            };

            dbContext.Users.Add(user);
            dbContext.Articles.Add(articleToAdd);
            dbContext.SaveChanges();

            using var repo = new EfDeletableEntityRepository <Article>(dbContext);
            var service = new ArticlesService(repo);

            var article = await service.GetArticleById <ArticleViewModel>(articleToAdd.Id);

            Assert.NotNull(article);
        }
        public async Task ChecksIfGetAllArticlesReturnsCorrectCount()
        {
            var options = new DbContextOptionsBuilder <ElectricTravelDbContext>()
                          .UseInMemoryDatabase(databaseName: "ArticlesTestDb").Options;

            using var dbContext = new ElectricTravelDbContext(options);

            var user = new ElectricTravelUser
            {
                Email    = "*****@*****.**",
                UserName = "******",
            };

            var article = new Article
            {
                ShortDescription = "asdffggasdasd",
                Content          = "asdasdjnjad",
                CreatedBy        = user,
                Title            = "asdgggghasjkljkj",
            };

            dbContext.Users.Add(user);
            dbContext.Articles.Add(article);

            dbContext.SaveChanges();

            using var repo = new EfDeletableEntityRepository <Article>(dbContext);
            var service = new ArticlesService(repo);

            var articasdasle = await dbContext.Articles
                               .FirstOrDefaultAsync(x => x.CreatedById == "goshkadsa");

            var articles = await service.GetAllArticles <ArticleViewModel>();

            var expectedResult = 2;
            var actualResult   = articles.Count();

            Assert.Equal(expectedResult, actualResult);
        }