Exemple #1
0
        public void IFindAuthors(FindAuthorsResponse expected)
        {
            _response.Should().NotBeNull();
            _response.IsValid.Should().BeTrue();

            _response.Authors.Count.Should().Be(expected.Authors.Count);
            _response.Authors.First().Id.Should().Be(expected.Authors.First().Id);
        }
Exemple #2
0
        public void FindAuthorsBySearch()
        {
            var expected = new FindAuthorsResponse()
            {
                Authors = new List <Author>()
                {
                    new Author()
                    {
                        Id = Guid.Parse("fac93f1e-ff28-49db-b234-13c9a5df2334")
                    }
                }
            };

            this.Given(x => x.AnAuthorsRequestedByTheClient())
            .When(x => x.FindAuthors())
            .Then(x => x.IFindAuthors(expected))
            .BDDfy();
        }
Exemple #3
0
 public async Task FindAuthors()
 {
     _response = await _useCase.Handle(_request);
 }