Skip to content

Commit

Permalink
added more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
humulla committed Oct 19, 2023
1 parent 2665a6e commit 4af8ee6
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,22 @@ public void PatchResponsibleEntitiesShouldBeEqualIfIdsMatch()
ResEnt1.Should().BeEquivalentTo(ResEnt2);

}
[Fact]
public void PatchResponsibleEntitiesShouldNotBeEqualIfIdsDoNotMatch()
{
var testId = Guid.NewGuid();
var ResEnt1 = _fixture.Build<ResponsibleEntities>()
.With(resEnt => resEnt.Id, testId)
.Create();
var ResEnt2 = _fixture.Build<ResponsibleEntities>()
.With(resEnt => resEnt.Id, Guid.NewGuid())
.Create();
var ResEnts1 = new List<ResponsibleEntities> { ResEnt1 };

var ResEnts2 = new List<ResponsibleEntities> { ResEnt2 };

ResEnt1.Should().NotBeEquivalentTo(ResEnt2);

}
}
}

0 comments on commit 4af8ee6

Please sign in to comment.