public void GetAllPersons_ReturnsCorrectResult() { IPersonService ps = new PersonServices(this.uow.Object); string displayCatString = JsonConvert.SerializeObject(ps.GetAllPersons(String.Empty)); string dpvsString = JsonConvert.SerializeObject(dpvs); Assert.Equal(displayCatString, dpvsString); }
static void Main(string[] args) { var service = new PersonServices(); service.AddNewPerson("Name1", "NickName1", "002512651651"); service.AddNewPerson("Name2", "NickName2", "002512651652"); Console.ReadLine(); var persons = service.GetAllPersons(); service.DeletePerson(1); Console.ReadLine(); }