/// <summary>
        /// Initializes a new instance of the <see cref="PersonEventRepositoryTest" /> class.
        /// </summary>
        public PersonEventRepositoryTest()
        {
            Common.Dependencies.Register();
            DataAccess.Dependencies.Register();
            DIContainer.Instance.Resolve<IApplicationSetting>().PersonEventServiceBaseAddress = "http://Localhost/";

            DIContainer.Instance.RegisterType<IPersonEventClient, PersonEventClient>();
            DIContainer.Instance.RegisterType<IEventTypeClient, EventTypeClient>();

            LoadRegisterDependencies();
            this.repository = new PersonEventRepository();
        }
Ejemplo n.º 2
0
        public PersonEventTest()
        {
            var repository = new PersonEventRepository();

            _personEventService = new PersonEventService(repository);
        }