Beispiel #1
0
        private static void AddCase(Default.Container container)
        {
            var c1 = new testClient.Org.Naima.Services.Cases.Models.Case()
            {
                Status         = "Open",
                Id             = 1,
                PatientId      = 1,
                DoctorId       = 1,
                CareProviderId = 1
            };
            var c2 = new testClient.Org.Naima.Services.Cases.Models.Case()
            {
                Status         = "Closed",
                Id             = 2,
                PatientId      = 1,
                DoctorId       = 2,
                CareProviderId = 2
            };
            var c3 = new testClient.Org.Naima.Services.Cases.Models.Case()
            {
                Status         = "Open",
                Id             = 3,
                PatientId      = 2,
                DoctorId       = 2,
                CareProviderId = 2
            };

            container.AddToCases(c1);
            container.AddToCases(c2);
            container.AddToCases(c3);
            var serviceResponse = container.SaveChanges();

            foreach (var operationResponse in serviceResponse)
            {
                Console.WriteLine("Response: {0}", operationResponse.StatusCode);
            }
        }