public void testGetGPPresenter()
        {
            GPPresenter gPPresenter = presenterFactory.getGPPresenter(
                new Patient(), new RepositoryFactory(), presenterFactory);

            Assert.IsNotNull(gPPresenter);
        }
        public void GpDetailsAddedPositiveCase()
        {
            Mock <GPPresenter>        Gp               = new Mock <GPPresenter>();
            Mock <IPatientRepository> repo             = new Mock <IPatientRepository>();
            Mock <IPresenterFactory>  presenterFactory = new Mock <IPresenterFactory>();

            Mock <IGpView>            gpView  = new Mock <IGpView>();
            Mock <IRepositoryFactory> factory = new Mock <IRepositoryFactory>();

            factory.Setup(x => x.getRepository(It.IsAny <string>())).Returns(repo.Object);
            gpView.Object.name    = "Biddlestone Health Group";
            gpView.Object.address = "Biddlestone Road, Heaton, Newcastle";
            Patient patient    = new Patient();
            GP      gp_details = new GP();

            patient.gp_details = gp_details;
            repo.Setup(x => x.addPatient(patient)).Returns(1);
            GPPresenter gPPresenter = new GPPresenter(patient, factory.Object, presenterFactory.Object);

            gPPresenter.view = gpView.Object;
            int value = gPPresenter.updatePatient();

            Assert.AreEqual(1, value);
        }