コード例 #1
0
        public async Task GetByActorsForPage_WithValidInput_ShouldReturnValidResult()
        {
            var dbContext = ApplicationDbContextCreatorInMemory.InitializeContext();

            await this.SeedData(dbContext);

            var actorsRepository = new EfDeletableEntityRepository <Actor>(dbContext);

            var service = new ActorsService(actorsRepository);

            var result = service.GetByActorsForPage <ActorViewModel>(1, 1);

            Assert.Single(result);
        }