public async Task Should_start_all_grains() { await sut.StartAllAsync(); A.CallTo(() => grainA.StartAsync()) .MustHaveHappened(); A.CallTo(() => grainB.StartAsync()) .MustHaveHappened(); }
public async Task Should_start_matching_grain() { await sut.StartAsync("a"); A.CallTo(() => grainA.StartAsync()) .MustHaveHappened(); A.CallTo(() => grainB.StartAsync()) .MustNotHaveHappened(); }