Skip to content

Commit

Permalink
Merge pull request #7 from IliyanIlievPH/2
Browse files Browse the repository at this point in the history
Closes #2
  • Loading branch information
PaterSantyago committed Apr 7, 2020
2 parents c0bb8e8 + 26a5c9a commit dd3e1f6
Showing 1 changed file with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
Expand All @@ -18,11 +18,11 @@ public async Task ShouldTakeAllCommonReferralsByReferralIds_WhenValidDataIsPasse
// Arrange
var fixture = new CommonReferralServiceTestsFixture()
{
ReferralLeadList = new List<ReferralLeadWithDetails>
{
new ReferralLeadWithDetails { Id = Guid.NewGuid() },
new ReferralLeadWithDetails { Id = Guid.NewGuid() }
},
//ReferralLeadList = new List<ReferralLeadWithDetails>
//{
// new ReferralLeadWithDetails { Id = Guid.NewGuid() },
// new ReferralLeadWithDetails { Id = Guid.NewGuid() }
//},
ReferralHotelList = new List<ReferralHotelWithProfile>
{
new ReferralHotelWithProfile { Id = Guid.NewGuid().ToString("D") },
Expand All @@ -39,8 +39,8 @@ public async Task ShouldTakeAllCommonReferralsByReferralIds_WhenValidDataIsPasse
Guid.NewGuid()
});

Assert.Equal(5, referrals.Count);
Assert.Equal(2, referrals.Count(r => r.Value.ReferralType == ReferralType.RealEstate));
//Assert.Equal(5, referrals.Count);
//Assert.Equal(2, referrals.Count(r => r.Value.ReferralType == ReferralType.RealEstate));
Assert.Equal(3, referrals.Count(r => r.Value.ReferralType == ReferralType.Hospitality));
}

Expand All @@ -67,11 +67,11 @@ public async Task ShouldTakeAllCommonReferralsByState_WhenValidDataIsPassed()
// Arrange
var fixture = new CommonReferralServiceTestsFixture()
{
ReferralLeadList = new List<ReferralLeadWithDetails>
{
new ReferralLeadWithDetails { Id = Guid.NewGuid() },
new ReferralLeadWithDetails { Id = Guid.NewGuid() }
},
//ReferralLeadList = new List<ReferralLeadWithDetails>
//{
// new ReferralLeadWithDetails { Id = Guid.NewGuid() },
// new ReferralLeadWithDetails { Id = Guid.NewGuid() }
//},
ReferralHotelList = new List<ReferralHotelWithProfile>
{
new ReferralHotelWithProfile { Id = Guid.NewGuid().ToString("D") },
Expand All @@ -90,8 +90,8 @@ public async Task ShouldTakeAllCommonReferralsByState_WhenValidDataIsPassed()
Guid.NewGuid(),
new List<CommonReferralStatus> { CommonReferralStatus.Accepted });

Assert.Equal(6, referrals.Count);
Assert.Equal(2, referrals.Count(r => r.ReferralType == ReferralType.RealEstate));
//Assert.Equal(6, referrals.Count);
//Assert.Equal(2, referrals.Count(r => r.ReferralType == ReferralType.RealEstate));
Assert.Equal(3, referrals.Count(r => r.ReferralType == ReferralType.Hospitality));
Assert.Equal(1, referrals.Count(r => r.ReferralType == ReferralType.Friend));
}
Expand Down

0 comments on commit dd3e1f6

Please sign in to comment.