public async Task CreateAsync_ShouldCreateTheItemEntry() { var expectedChannel = SetupChannel(); var advertisementEntry = _fixture.Build <AdvertisementEntry>() .With(x => x.ChannelIds, new List <int> { expectedChannel.Id }) .Create(); var result = await _advertisementRepository.CreateAsync(advertisementEntry); result.Should().NotBeNull(); _dbContext.Advertisements.Any(x => x.Id == result.Id).Should().BeTrue(); }