Esempio n. 1
0
 public void SetUp()
 {
     _callQueryRepositoryMock = new Mock<ICallQueryRepository>();
     _callQueryRepositoryMock.Setup(qr => qr.FindCalls(It.IsAny<Expression<Func<CallInput, bool>>>())).Returns(new Call[0]);
     _callPlaybackResolverMock = new Mock<ICallPlaybackResolver>();
     _callPlayer = new CallPlayer(_callQueryRepositoryMock.Object, _callPlaybackResolverMock.Object);
 }
Esempio n. 2
0
 private void btnPlayCall_Click(object sender, EventArgs e)
 {
     if ((SelectedProduct != null) && ((SelectedProduct as CallClass).Path != ""))
     {
         CallPlayer newWin = new CallPlayer((SelectedProduct as CallClass).Path);
         newWin.ShowDialog();
     }
     else
     {
         MessageBox.Show("Media file was not found");
     }
 }