public async Task ShouldFireAllTimers()
        {
            // Arrange
            var grain = await Silo.CreateGrainAsync <HelloTimers>(0);

            // Act
            Silo.FireAllTimers();

            // Assert
            var state = Silo.State(grain);

            state.Timer0Fired.Should().BeTrue();
            state.Timer1Fired.Should().BeTrue();
        }
Exemple #2
0
        public void ShouldFireAllTimers()
        {
            // Arrange
            var grain = Silo.CreateGrain <HelloTimers>(0);

            // Act
            Silo.FireAllTimers();

            // Assert
            var state = Silo.State <HelloTimersState>(grain);

            state.Timer0Fired.Should().BeTrue();
            state.Timer1Fired.Should().BeTrue();
        }