Пример #1
0
        public async Task TheTheRepositoryShouldBeCalledToRetrieveData()
        {
            //Arrange
            var request = new GetDataLocksRequest();

            //Act
            await _handler.Handle(request);

            //Assert
            _dataLockRepository.Verify(x => x.GetDataLocks(It.IsAny <long>(), It.IsAny <bool>()), Times.Once);
        }
            public async Task <GetDataLocksQueryResult> Handle()
            {
                _result = await _handler.Handle(_request, new CancellationToken());

                return(_result);
            }