public void When_Find_Is_Called_Verify_DataContext_Read_Method_Was_Called() { // act _musicContractRepository.Find(mc => mc.Artist.Contains("Test Artist")); //assert _mockDataContext.Verify(mdc => mdc.Read(It.IsAny <string>())); }
public void When_Find_Is_Called_Verify_DataContext_Read_Method_Was_Called() { // act _distributionPartnerContractRepository.Find(mc => mc.Partner.Contains(It.IsAny <string>())); //assert _mockDataContext.Verify(mdc => mdc.Read(It.IsAny <string>())); }