Beispiel #1
0
        public void AddFacilityTest()
        {
            var serv = new FacilityService(new MVCHContext());

            serv.AddFacility(new Facility
            {
                Name = "MVCH Hospital Facility 1"
            });
            serv.AddFacility(new Facility
            {
                Name = "MVCH Hospital Facility 2"
            });
            serv.AddFacility(new Facility
            {
                Name = "MVCH Hospital Facility 3"
            });
            serv.AddFacility(new Facility
            {
                Name = "MVCH Hospital Facility 4"
            });
            serv.AddFacility(new Facility
            {
                Name = "MVCH Hospital Facility 5"
            });
            serv.AddFacility(new Facility
            {
                Name = "MVCH Hospital Facility 6"
            });
            serv.AddFacility(new Facility
            {
                Name = "MVCH Hospital Facility 7"
            });
            serv.AddFacility(new Facility
            {
                Name = "MVCH Hospital Facility 8"
            });
            serv.AddFacility(new Facility
            {
                Name = "MVCH Hospital Facility 9"
            });
            serv.AddFacility(new Facility
            {
                Name = "MVCH Hospital Facility 10"
            });
        }
Beispiel #2
0
        public void Add()
        {
            var facilityToAdd = new Facility
            {
                Name = Name
            };

            _facilityService.AddFacility(facilityToAdd);
            if (SelectedPhysicians != null)
            {
                AddFacilityPhysician(facilityToAdd.FacilityId);
            }
            _facilityListViewModel.FacilityList.Insert(0, new FacilityViewModel(facilityToAdd));
        }