public void ShouldReturnNullGivenAnEmptyStringAsNameofADistributionPartner() { var actual = _sut.GetDistributionPartnerContract(string.Empty); Assert.That(actual, Is.Null); _fileToObjectMapper.VerifyAll(); }
public IEnumerable <MusicContract> GetActiveMusicContracts(string deliveryPartnerName, DateTime effecDateTime) { var partnerContract = _distributionPartnerDataAccess.GetDistributionPartnerContract(deliveryPartnerName); var musicContracts = _recordLabelDataAccess.GetMusicContracts(partnerContract.Usage); return(musicContracts .Where(EffectiveDatePredicate(effecDateTime)) .OrderBy(contract => contract.Artist) .ThenByDescending(contract => contract.EndDate)); }