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); }
public void Save(string path, List <FirmModel> _list) { service.Save(path, _list.ToObjectCollection()); }