Beispiel #1
0
        public void GetBand_WhenAlways_ShouldCallRepository()
        {
            // Arrange
            string id = "akjsdh1u23917y189hj";

            _bandsApiDataAdapter.Setup(x => x.GetBandAsync(id));

            // Act
            _sut.GetBand(id);

            // Assert
            _bandsApiDataAdapter.Verify(x => x.GetBandAsync(id));
        }
Beispiel #2
0
        public async Task <Models.Band> Get(string id)
        {
            var result = await _bandsService.GetBand(id);

            var mappedResult = _mapper.Map <Models.Band>(result);

            return(mappedResult);
        }