Exemplo n.º 1
0
        public async Task GrainDeactivation()
        {
            var grain = await Silo.CreateGrainAsync <LifecycleGrain>(new Random().Next());

            grain.DeactivateCount.Should().Be(0);

            await Silo.DeactivateAsync(grain);

            grain.DeactivateCount.Should().Be(1);
        }