public void GetAllIncludesAllRelationsOfSerie()
        {
            var brand = new Brand();

            var serie = new Series
            {
                Brand = brand
            };

            _sut.Add(serie);

            var series = _sut.GetAll();

            Assert.That(series, Is.Not.Null);

            var serieFromDatabase = series.FirstOrDefault(s => s.Id == serie.Id);

            Assert.That(serieFromDatabase.Brand, Is.EqualTo(brand));
        }
示例#2
0
 public void Add(Serie serie)
 {
     _serieRepository.Add(serie);
 }