Example #1
0
        public static Country Create(Guid id, string name = "test", bool isEuMember = true)
        {
            var country = ObjectInstantiator <Country> .CreateNew();

            ObjectInstantiator <Country> .SetProperty(x => x.Id, id, country);

            ObjectInstantiator <Country> .SetProperty(x => x.Name, name, country);

            return(country);
        }
Example #2
0
        public static UKCompetentAuthority Create(Guid id, Country country)
        {
            var competentAuthority = ObjectInstantiator <UKCompetentAuthority> .CreateNew();

            ObjectInstantiator <UKCompetentAuthority> .SetProperty(x => x.Country, country, competentAuthority);

            ObjectInstantiator <UKCompetentAuthority> .SetProperty(x => x.Id, id, competentAuthority);

            return(competentAuthority);
        }