public Dezena Update(Dezena dezena) { if (dezena.id <= 0) { throw new IdentifierUndefinedException(); } dezena.Validate(); return(_repository.Update(dezena)); }
public Dezena Add(Dezena dezena) { dezena.Validate(); return(_repository.Save(dezena)); }
public void Dezena_TestDomain_ShouldBeOk() { Action comparation = () => { _dezena.Validate(); }; comparation.Should().NotThrow(); }