Exemplo n.º 1
0
        public void Setup()
        {
            unitOfWork   = new UnitOfWork();
            appViewModel = new ApplicationViewModel <Model.Donor>();
            Address homeAddress = new Address();

            homeAddress.City      = "Cluj-Napoca";
            homeAddress.Street    = "DeathIsSweet";
            homeAddress.StreetNo  = "123";
            homeAddress.AddressID = 7000;
            Person person = new Person();

            person.FirstName  = "Alex";
            person.LastName   = "Alex";
            person.PersonID   = 7000;
            appViewModel.User = new Model.Donor {
                PersonID = 7000, Person = person, ResidenceAddress = homeAddress, ResidenceID = 7000
            };

            dispatcherWrapper = new Core.UnitTests.Dependencies.DispatcherWrapper();
            parentPage        = new ParentPage();
            viewModel         = new ApplyViewModel(unitOfWork, appViewModel, dispatcherWrapper)
            {
                ParentPage = parentPage
            };
        }
Exemplo n.º 2
0
 public void Setup()
 {
     unitOfWork        = new UnitOfWork();
     appViewModel      = new ApplicationViewModel <Model.Donor>();
     appViewModel.User = new Model.Donor {
         PersonID = 0
     };
     dispatcherWrapper = new Core.UnitTests.Dependencies.DispatcherWrapper();
     parentPage        = new ParentPage();
     security          = new Security.Security();
     viewModel         = new ProfileViewModel(unitOfWork, appViewModel, dispatcherWrapper, security)
     {
         ParentPage = parentPage
     };
 }