示例#1
0
        public async void ShouldGetMovielById()
        {
            var db = new MyContextFake("Teste3");
            BaseRepository <MovieEntity> movieRepository = new BaseRepository <MovieEntity>(db.context());
            var movie = await movieRepository.SelectAsync(new Guid("d736ef12-2726-440f-85b7-2ca0d4cea388"));

            Assert.Equal("Coringa", movie.NationalTitle);
        }
示例#2
0
        public async void ShouldGetNullById()
        {
            var db = new MyContextFake("Teste2");
            BaseRepository <MovieEntity> movieRepository = new BaseRepository <MovieEntity>(db.context());
            var movie = await movieRepository.SelectAsync(new Guid("d736ef12-2726-440f-85b7-2ca0d4cea386"));

            Assert.Null(movie);
        }