/// <summary>
 /// Initializes a new instance of the <see cref="OrganizationTypesControllerTest" /> class.
 /// </summary>
 public OrganizationTypesControllerTest()
 {
     this.entitiesForTest = new EntitiesForTest();
     this.repositoryMock  = new Mock <IRepository <OrganizationType> >();
     this.mapperMock      = new Mock <IMapper>();
     this.target          = new OrganizationTypesController(this.repositoryMock.Object, this.mapperMock.Object);
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="ActivitiesControllerTest" /> class.
        /// </summary>
        public ActivityTypesControllerTest()
        {
            this.entitiesForTest = new EntitiesForTest();
            this.repositoryMock  = new Mock <IRepository <ActivityType> >();
            this.mapperMock      = new Mock <IMapper>();

            this.target = new ActivityTypesController(
                this.repositoryMock.Object,
                this.mapperMock.Object);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RolesControllerTest" /> class.
        /// </summary>
        public RolesControllerTest()
        {
            this.entitiesForTest = new EntitiesForTest();
            this.repositoryMock  = new Mock <IRepository <Role> >();
            this.mapperMock      = new Mock <IMapper>();

            this.target = new RolesController(
                this.repositoryMock.Object,
                this.mapperMock.Object);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="ContactsControllerTest" /> class.
        /// </summary>
        public ContactsControllerTest()
        {
            this.entitiesForTest = new EntitiesForTest();
            this.sourceMock      = new Mock <IDataSource <Contact> >();
            this.repositoryMock  = new Mock <IRepository <Contact> >();
            this.mapperMock      = new Mock <IMapper>();

            this.target = new ContactsController(
                this.sourceMock.Object,
                this.repositoryMock.Object,
                this.mapperMock.Object);
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Initializes a new instance of the <see cref="OrganizationCategoriesControllerTest" /> class.
        /// </summary>
        public OrganizationCategoriesControllerTest()
        {
            this.entitiesForTest = new EntitiesForTest();
            this.sourceMock      = new Mock <IDataSource <OrganizationCategory> >();
            this.repositoryMock  = new Mock <IRepository <OrganizationCategory> >();
            this.mapperMock      = new Mock <IMapper>();

            this.target = new OrganizationCategoriesController(
                this.sourceMock.Object,
                this.repositoryMock.Object,
                this.mapperMock.Object);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="ActivitiesControllerTest" /> class.
        /// </summary>
        public ActivityTasksControllerTest()
        {
            this.entitiesForTest = new EntitiesForTest();

            this.applicationUserManagerMock = new Mock <IApplicationUserManager>();
            this.httpContextAccessorMock    = new Mock <IHttpContextAccessor>();
            this.repositoryMock             = new Mock <IRepository <ActivityTask> >();
            this.mapperMock = new Mock <IMapper>();

            this.target = new ActivityTasksController(
                this.applicationUserManagerMock.Object,
                this.httpContextAccessorMock.Object,
                this.repositoryMock.Object,
                this.mapperMock.Object);
        }
Ejemplo n.º 7
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ApplicationUsersControllerTest" /> class.
        /// </summary>
        public ApplicationUsersControllerTest()
        {
            this.entitiesForTest       = new EntitiesForTest();
            this.sourceMock            = new Mock <IDataSource <ApplicationUser> >();
            this.repositoryMock        = new Mock <IRepository <ApplicationUser> >();
            this.repositoryCompanyMock = new Mock <IRepository <Company> >();
            this.repositoryRoleMock    = new Mock <IRepository <Role> >();
            this.mapperMock            = new Mock <IMapper>();
            this.userManagerMock       = new Mock <IApplicationUserManager>();

            this.target = new ApplicationUsersController(
                this.sourceMock.Object,
                this.repositoryMock.Object,
                this.repositoryCompanyMock.Object,
                this.repositoryRoleMock.Object,
                this.mapperMock.Object,
                this.userManagerMock.Object);
        }