Exemple #1
0
        public async Task EssayGradedWithoutGrade()
        {
            var context = EssayCompetitionContextInMemoryFactory.InitializeContext();
            var essay   = await this.seeder.SeedEssayAsync(context);

            var gradeRepository = new EfRepository <Grade>(context);
            var service         = new GradeService(gradeRepository);

            var result = service.EssayGradet(essay.Id);

            Assert.True(result == false, "EssayGraded method does not work correctly");
        }