public void SetupData() { var sampleData = new Data(); var samplePlace = new Place { Id = 1, Name = "Testville" }; sampleData.Places = new List <Place> { samplePlace }; var samplePerson = new Person { Id = 1, Gender = "F", Level = 1, Name = "Mollie Smith", Place_Id = 1 }; sampleData.People = new List <Person> { samplePerson }; StaticCache.LoadStaticData(sampleData); }
public void SetupData() { var sampleData = new Data(); var samplePlace = new Place { Id = 1, Name = "Testville" }; sampleData.Places = new List <Place> { samplePlace }; List <Person> samplePeople = new List <Person>(); var samplePerson = new Person { Id = 1, Gender = "F", Level = 1, Name = "Mollie Smith", Place_Id = 1 }; samplePeople.Add(samplePerson); var sampleChild = new Person { Id = 2, Gender = "M", Level = 2, Name = "Billy Kid", Place_Id = 1, Mother_Id = 1 }; samplePeople.Add(sampleChild); sampleData.People = samplePeople; StaticCache.LoadStaticData(sampleData); }