public void Update_DoNotSendNotificationsForReprints() { song.PVs.PVs.Clear(); song.CreateDate = DateTime.Now - TimeSpan.FromDays(30); repository.Save(user2.AddArtist(producer)); var contract = EditContract(); contract.PVs = new[] { CreateEntry.PVContract(pvType: PVType.Reprint) }; queries.UpdateBasicProperties(contract); Assert.AreEqual(0, repository.Count <UserMessage>(), "No notification was sent"); }
public async Task Update_DoNotSendNotificationsForReprints() { _song.PVs.PVs.Clear(); _song.CreateDate = DateTime.Now - TimeSpan.FromDays(30); _repository.Save(_user2.AddArtist(_producer)); var contract = EditContract(); contract.PVs = new[] { CreateEntry.PVContract(pvType: PVType.Reprint) }; await _queries.UpdateBasicProperties(contract); _repository.Count <UserMessage>().Should().Be(0, "No notification was sent"); }