Skip to content

Commit

Permalink
#44 Napravljen test za 6 dana do isteka članstva.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarkoovin21 committed Jun 14, 2024
1 parent e8ddb0e commit 8a32f5b
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,21 @@ public void MembershipExpieringSoon_GivenMembershipExpiresInSomeDays_ReturnDaysU
Assert.Equal(daysUntilExpiration, result);
}

[Fact]
public void MembershipExpieringSoon_GivenMembershipExpiresIn6days_EqualsZero()
{
// Arrange
LoggedUser.Username = "username";
LoggedUser.LibraryId = 1;
UpdateLibraryMembershipDuration(6);

// Act
var result = memberService.MembershipExpieringSoon();

// Assert
Assert.Equal(result, 0);
}


}
}

0 comments on commit 8a32f5b

Please sign in to comment.