Exemple #1
0
        public async Task Should_start_all_grains()
        {
            await sut.StartAllAsync();

            A.CallTo(() => grainA.StartAsync())
            .MustHaveHappened();

            A.CallTo(() => grainB.StartAsync())
            .MustHaveHappened();
        }
Exemple #2
0
        public async Task Should_start_matching_grain()
        {
            await sut.StartAsync("a");

            A.CallTo(() => grainA.StartAsync())
            .MustHaveHappened();

            A.CallTo(() => grainB.StartAsync())
            .MustNotHaveHappened();
        }