public void CreateObjectStringCollection() { _stringCollection.Add("Volibear,Marte"); var rebelde = _factory.CreateRebeld(_stringCollection); Assert.IsNotNull(rebelde); }
public void CreateStringCollection(StringCollection rebeldes) { try { Rebelds obj = _factory.CreateRebeld(rebeldes); var ExistingList = Lista.ToList(); ExistingList.Add(obj); var result = ExistingList.ToString(); _log.WriteLog(result); } catch (Exception ex) { throw new FactoryException("No se ha podido listar todos los rebeldes", ex); } }
public void CreateStringCollection(StringCollection rebeldes) { var result = string.Empty; try { var obj = _factory.CreateRebeld(rebeldes); List <ICitizen> existingList = Lista.ToList(); existingList.Add(obj); result = existingList.ToString(); _log.WriteLog(result); } catch (Exception ex) { throw new FactoryException("No se ha podido listar todos los rebeldes", ex); } }