Created
August 1, 2014 01:40
-
-
Save Romiko/bc9da01ad53516ccfd2f to your computer and use it in GitHub Desktop.
PowerScribe Status
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void ReportChanged(string siteName, string accessionNumbers, int radWhereReportStatus, bool isaddendum, string plaintext, string richtext) | |
{ | |
Logger.Debug("Report {0} Site:{1} AccessionNumber: {2} Status: {3}", ReportEvent.Changed, siteName, accessionNumbers, (RadWhereReportStatus)radWhereReportStatus); | |
if (PowerscribeStatus.UnknownOrPending == (PowerscribeStatus)radWhereReportStatus) | |
return; | |
Hub.Publish(HubEvents.DictationSystem.PSInterop.ReportChanged); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Test] | |
public void ShouldRaiseReportClosedEvent() | |
{ | |
// arrange | |
var wasCalled = false; | |
Hub.Subscribe<OnReportData>(HubEvents.DictationSystem.PSInterop.ReportClosed, a => | |
{ | |
wasCalled = true; | |
}, "Foo"); | |
var radWhereCom = Substitute.For<IMyRadWhereCom>(); | |
var ps = new Powerscribe360(radWhereCom); | |
// act | |
ps.RadWhereCom.ReportClosed += Raise.Event<RWC_ReportClosedHandler>( | |
"mySite", "myaccessionNumber", (int)PowerscribeStatus.Draft, false, "Some Text", "Some Rich Text"); | |
// assert | |
Assert.IsTrue(wasCalled); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment