mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
Invitation globale work
+ tests + new services + InvitationDto and IInvitationReqest
This commit is contained in:
@@ -204,12 +204,14 @@ public class InvitesRepositoryTests
|
||||
|
||||
// Act
|
||||
var result = repository.Exist(Guid.NewGuid());
|
||||
var result2 = repository.Exist(_fixture.Create<string>());
|
||||
|
||||
Assert.That(result, Is.False);
|
||||
Assert.That(result2, Is.False);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public async Task Given_ExistInvitesCode_When_Exist_Then_Returns_False()
|
||||
public async Task Given_ExistInvites_When_Exist_Then_Returns_False()
|
||||
{
|
||||
// Arrange
|
||||
var invitation = _fixture.Create<Invitation>();
|
||||
@@ -226,11 +228,14 @@ public class InvitesRepositoryTests
|
||||
// Act
|
||||
var result = repository.Exist(invitation.Id);
|
||||
var result2 = repository.Exist(invitation);
|
||||
var result3 = repository.Exist(invitation.Code);
|
||||
|
||||
Assert.That(result, Is.True);
|
||||
Assert.That(result2, Is.True);
|
||||
Assert.That(result3, Is.True);
|
||||
}
|
||||
|
||||
|
||||
[Test]
|
||||
public async Task Given_InvalidInvites_When_Exist_Then_Returns_False()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user