public void Entity_AsyncMethodThrows_BusinessRuleValidationException_method_should_throw_BusinessRuleValidationException_when_its_checking_the_rule() { //arrange var entity = FakeEntity.New(); //act & assert Assert.ThrowsAsync <BusinessRuleValidationException>(() => entity.AsyncMethodThrows_BusinessRuleValidationException(0)); }
public void Entity_should_have_generated_id() { //arrange var entity = FakeEntity.New(); //act & assert entity.Id.Should().NotBeNull(); entity.Id.Value.Should().NotBeEmpty(); entity.IsTransient().Should().BeTrue(); }