Ejemplo n.º 1
0
        public void DeserializaeTestFirm()
        {
            var    firm = new Firm("Firm", "IT", 10, 2);
            string path = @"D:\ForFiles\UnitTest";

            FirmService firmService = new FirmService();

            firmService.Save(path, new List <Firm> {
                firm
            });
            var result = firmService.ToDeserialzie(path);

            Assert.AreEqual(firm.Name, result[0].Name);
        }
Ejemplo n.º 2
0
 public void Save(string path, List <FirmModel> _list)
 {
     service.Save(path, _list.ToObjectCollection());
 }