コード例 #1
0
        public async Task ShouldExecuteSuccessfully()
        {
            _storiesAcl.Setup(s => s.GetStoriesDescription(_idStories)).ReturnsAsync(_storiesDescription);

            var result = await _chain.Execute(GetParam());

            result.Should().NotBeNull();
            _storiesAcl.Verify(v => v.GetStoriesDescription(_idStories), Times.Once);
        }
コード例 #2
0
 protected virtual void Update(UpdateState state)
 {
     _updateChain.Execute(state);
 }