Example #1
0
        public async Task GetAllDataAsync_Should_Get_All_User_DataAsync(string username, List <JsonModel> jsonModels)
        {
            _jsonRepository.GetUserJsonsAsync(username).Returns(jsonModels);
            var result = await _jsonServiceInstance.GetAllDataAsync(username);

            Assert.AreEqual(jsonModels, result);
        }
Example #2
0
 public Task <IEnumerable <JsonModel> > GetAllDataAsync(string userName) => _jsonRepository.GetUserJsonsAsync(userName);