예제 #1
0
        public void EntryCanBeAdded()
        {
            var id = _sut.Add(new PasswordInput(Password, 1));


            id.Should().NotBeEmpty();

            var entry = _dbContext.Entries.Find(id);

            entry.Should().NotBeNull();

            _dataProtector.Unprotect(entry.Password).Should().Be(Password);
        }