Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public async Task GetByTypeAsync_FiltersByUserIdAndType() { var userId = _settingsData.First().UserId; SettingType type = _settingsData.First().Type; _userHelperMock.SetupGet(p => p.UserId).Returns(userId); SettingEntity expectedResult = _settingsData.Single(s => s.UserId == userId && s.Type == type); SettingEntity actualResult = await _settingsRepository.GetByTypeAsync(type); Assert.AreEqual(expectedResult, actualResult); }