public async void AddAdvertisement() { var ctx = _fixture.ctx; var advertisementRepository = new AdvertisementRepository(ctx); var advert = new Advertisement { Id = 6, UserId = 8, Title = "test1", DateCreated = DateTime.Now.AddMonths(-1), ExchangeActive = true, IsActive = true, Price = 100, Item = new Game() { Id = 6, AdvertisementId = 6, Description = "Hey", GameRegionId = 1, GenreId = 1, } }; await advertisementRepository.AddAsync(advert); var ads = await advertisementRepository.GetAsync(6); Assert.NotNull(ads); }