public async Task GetInterestById_Should_Return_Failure_Result_With_InValid_Interest_Id(int id) { var interestRepository = new InterestRepository(_pearUpContext); var result = await interestRepository.GetInterestById(id); result.IsSuccessed.Should().BeFalse(); result.GetErrorString().Should().Be(InterestRepository.No_Interests_Found); }
public async Task GetInterestById_Should_Return_Success_Result_With_Valid_Interest_Id() { var interestRepository = new InterestRepository(_pearUpContext); var result = await interestRepository.GetInterestById(1); result.IsSuccessed.Should().BeTrue(); result.Value.Id.Should().Be(1); result.Value.InterestDescription.Should().Be("mock"); result.Value.InterestName.Should().Be("mock"); }