public async Task RunScriptWithDomainShouldCallCorrectFunction() { // ARRANGE await InitializeFakeDaemon().ConfigureAwait(false); // ACT DefaultDaemonRxApp.RunScript("script.myscript"); await RunFakeDaemonUntilTimeout().ConfigureAwait(false); // ASSERT DefaultHassClientMock.VerifyCallServiceTimes("myscript", Times.Once()); }
public async Task RunScriptShouldCallCorrectFunction() { // ARRANGE await InitializeFakeDaemon().ConfigureAwait(false); var(dynObj, expObj) = GetDynamicObject( ("attr", "value")); // ACT DefaultDaemonRxApp.RunScript("myscript"); await RunFakeDaemonUntilTimeout().ConfigureAwait(false); // ASSERT DefaultHassClientMock.VerifyCallServiceTimes("myscript", Times.Once()); }