Example #1
0
        public async void PostHospitalTest()
        {
            TheGuardian.DataAccess.Hospital listOfHospitals = new TheGuardian.DataAccess.Hospital
            {
                Id      = 1,
                Name    = "TestName",
                Address = "TestAddress",
                City    = "City",
                State   = "State",
                Zip     = 11010,
                Phone   = "5164911125",
                Website = "TestHospital.com",
                AggClericalStaffRating = 5,
                AggFacilityRating      = 5,
                AggMedicalStaffRating  = 5,
                AggOverallRating       = 5,
            };
            mockIGuardianRepository.Setup(x => x.PostHospitalAsync(Mapper.MapHospital(listOfHospitals))).Verifiable();
            var postResult = await hospitalsController.PostHospital(listOfHospitals);

            postResult.Result.Should().Equals(listOfHospitals);
        }