public void WriteToReceptionTest()
 {
     var tmp = DateTime.Now;
     var actual = new Record(2, 1, tmp);
     var expected = registry.WriteToReceptionDoctor(2, new Pacient("FirstName", "LastName") { Id = 1 }).Time = tmp;
     Assert.AreEqual(actual, expected);
 }
		private void detach_Records(Record entity)
		{
			this.SendPropertyChanging();
			entity.Pacient = null;
		}
		private void attach_Records(Record entity)
		{
			this.SendPropertyChanging();
			entity.Pacient = this;
		}
		partial void DeleteRecords(Record instance);
		partial void UpdateRecords(Record instance);
		partial void InsertRecords(Record instance);
 public void AddRecord(Record record)
 {
     context.Records.InsertOnSubmit(record);
     context.SubmitChanges();
 }