Ejemplo n.º 1
0
            public async Task WhenIsRequestAlreadySentGetsCalled()
            {
                Setup();

                _request = new Fixture().Create <Request>();

                RequestsRepository.Setup(repository => repository.GetRequestByUserIdsAndType(It.IsAny <Request>()))
                .ReturnsAsync(_request).Callback <Request>(req => _usedRequest = req);

                _result = await RequestsService.IsRequestAlreadySent(_request);
            }