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); }
public bool PutList(List <T> entities) { return(_serialization.SerializeObject(entities)); }