public async Task Encrypt_should_throw_ex_when_sensitivedatakeyid_is_null_or_empty() { var person = new PersonCase4 { Id = null, FirstName = "John" }; await Assert.ThrowsAsync <Exception>(() => _engine.EncryptAsync(person)); }
public async Task Encrypt_should_encrypt_and_decrypt_with_int_sensitivedatakeyid_attribute() { var person = new PersonCase4 { Id = 999, FirstName = "John" }; await _engine.EncryptAsync(person); Assert.NotEqual("John", person.FirstName); await _engine.DecryptAsync(person); Assert.Equal("John", person.FirstName); }