public void CreateNewFaculty() { var dataService = new DataServiceClient(); var branch = new Branch(); var faculty = new Faculty(); branch.Name = "Test name"; branch.CreatedDate = DateTime.Now; branch.UpdateDate = DateTime.Now; var result = dataService.Add(branch); branch.Id = result.Object.Id; faculty.Branch = branch; faculty.Name = "Test name"; faculty.ShortName = "Test short name"; faculty.CreatedDate = DateTime.Now; faculty.IsActual = true; faculty.UpdateDate = DateTime.Now; result = dataService.Add(faculty); }