Exemplo n.º 1
0
        public async Task CreateAsync_WhenCalledWithValidBeer_CallsBeerServiceCreateAsync()
        {
            await _controller.CreateAsync(_beerRequest);

            await _beerService.Received(1).CreateAsync(Arg.Is <Beer>(x =>
                                                                     x.Name == _beer.Name &&
                                                                     x.Style == _beer.Style &&
                                                                     x.Brewery == _beer.Brewery &&
                                                                     x.Abv == _beer.Abv));
        }