Пример #1
0
        public async void DeleteAlbum_ById_0_Returns_False()
        {
            var albumId = 0;

            For <IMediator>()
            .Setup(m => m.Send(It.IsAny <DeleteAlbumCommand>(), default(CancellationToken)))
            .Returns(Task.FromResult(false)).Verifiable();

            var result = await ObjectUnderTest.DeleteAlbum(albumId);

            result.ShouldBeFalse();
            For <IMediator>().Verify();
        }