public void TestSerializationManagerInjection()
 {
     try
     {
         ICentralSerializationManager <IVoluntario> obj = null;
         obj = new CrossCutting.IoCManager.Voluntario.SerializationManager.SerializationIoCManager(base.Config).GetJSonCurrentImplementation();
         Assert.IsTrue(obj != null && obj.GetType().IsClass);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #2
0
        public void Setup()
        {
            ser = new CrossCutting.IoCManager.Voluntario.SerializationManager.SerializationIoCManager(base.Config).GetJSonCurrentImplementation();

            voluntario                = new Voluntario.IoCManager.Model.ModelIoCManager(base.Config).GetIVoluntarioCurrentImplementation();
            voluntario.Cep            = "11703680";
            voluntario.Cpf            = 31495307840;
            voluntario.DataNascimento = "16/02/1982";
            voluntario.Email          = "*****@*****.**";
            voluntario.Id             = Guid.NewGuid().ToString();
            voluntario.Nome           = "Leandro Figueiredo Silva Ribeiro";
            voluntario.Senha          = "Senha";
            voluntario.Telefone       = "12323123";
            voluntario.AreasInteresse = new List <string>()
            {
                "teste01", "teste02"
            };
            voluntario.FotoBase64 = Convert.ToBase64String(new byte[] { 0, 1, 33, 56, 87, 19 });
        }