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); }
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); }