public void WaitForInitCompletionForwardsTheCallToBeaconSender() { // given mockBeaconSender.WaitForInitCompletion().Returns(false, true); var target = CreateOpenKit().Build(); // when var obtained = target.WaitForInitCompletion(); // then Assert.That(obtained, Is.False); mockBeaconSender.Received(1).WaitForInitCompletion(); // and when obtained = target.WaitForInitCompletion(); // then Assert.That(obtained, Is.True); mockBeaconSender.Received(2).WaitForInitCompletion(); }
public bool WaitForInitCompletion() { return(beaconSender.WaitForInitCompletion()); }