예제 #1
0
        public void SerializationContainerTest()
        {
            var configurationSettings = _fixture.Container.GetInstance <IConfigurationSettings>();

            configurationSettings.MasterKey = "Test1234";

            _fixture.Cleanup();

            ISerialization <PasswordEntity> entityPersistence = _fixture.Container.GetInstance <ISerialization <PasswordEntity> >();

            bool success = entityPersistence.SerializeObject(new PasswordEntity
            {
                CommonName = "Amazon",
                Url        = "www.amazon.com",
                UserName   = "******",
                Password   = "******"
            });

            success.ShouldBe(true);
        }
예제 #2
0
 public bool PutList(List <T> entities)
 {
     return(_serialization.SerializeObject(entities));
 }