Beispiel #1
0
        public async Task Given_Episode_To_Update_returns_200()
        {
            var entity = new EpisodeDto
            {
                Description = "UpdatedDesc"
            };
            var result = await FakeController.Put(_fakeEntities[0].Id, entity);

            var objectResult = (OkObjectResult)result;

            Assert.NotNull(_fakeEntities[0].UpdatedAt);
            Assert.Equal(200, objectResult.StatusCode);
        }
Beispiel #2
0
        public async Task Given_Prescription_To_Update_returns_200()
        {
            var entity = new UpdatePrescriptionDto
            {
                ConsultationId = _constulatations[0].Id,
                Description    = "DEDEDE"
            };
            var result = await FakeController.Put(_fakeEntities[0].Id, entity);

            var objectResult = (OkObjectResult)result;

            Assert.NotNull(_fakeEntities[0].UpdatedAt);
            Assert.Equal(200, objectResult.StatusCode);
        }
Beispiel #3
0
        public async Task Given_AdditionalExaminationType_To_Update_returns_200()
        {
            var entity = new AdditionalExaminationTypeDto
            {
                Name = "Naamm",
                Unit = "Unitt"
            };

            var result = await FakeController.Put(_fakeEntities[0].Id, entity);

            var objectResult = (OkObjectResult)result;

            Assert.NotNull(_fakeEntities[0].UpdatedAt);
            Assert.Equal(200, objectResult.StatusCode);
        }
        public async Task Given_Consultation_To_Update_returns_200()
        {
            var entity = new UpdateConsultationDto
            {
                Comments  = "commentsUpdate",
                Date      = DateTime.Now,
                PatientId = _patients[0].Id,
                DoctorId  = Guid.Parse(_fakeIdentityUsers[0].Id)
            };
            var result = await FakeController.Put(_fakeEntities[0].Id, entity);

            var objectResult = (OkObjectResult)result;

            Assert.NotNull(_fakeEntities[0].UpdatedAt);
            Assert.Equal(200, objectResult.StatusCode);
        }