示例#1
0
        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();
        }
示例#2
0
 public bool WaitForInitCompletion()
 {
     return(beaconSender.WaitForInitCompletion());
 }