Beispiel #1
0
        public PageHeaderServiceTests()
        {
            Account cloudinaryAcc
                = new Account(
                      "dy78wnfy2",
                      "857437556699719",
                      "jj3uew_U5wJPCm8Xn_LWYbbHDf8");

            Cloudinary cloudinaryUtility = new Cloudinary(cloudinaryAcc);

            this.cloudinaryService = new CloudinaryService(cloudinaryUtility);

            this.pageHeadersRepository = this.GetPageHeadersRepository(this.GetTestPageHeadersList()).Object;
            this.pageHeaderService     = new PageHeaderService(this.pageHeadersRepository, this.cloudinaryService);
        }
        public PostServiceTests()
        {
            this.imagesRepository      = this.GetImageRepository(this.GetTestImagecList()).Object;
            this.usersRepository       = this.GetUserRepository(this.GetTestUsercList()).Object;
            this.postsRepository       = this.GetPostsRepository(this.GetTestPostsList()).Object;
            this.pageHeadersRepository = this.GetPageHeadersRepository(this.GetTestPageHeadersList()).Object;
            this.sectionRepository     = this.GetSectionRepository(this.GetTestSectionsList()).Object;

            Account cloudinaryAcc
                = new Account(
                      "dy78wnfy2",
                      "857437556699719",
                      "jj3uew_U5wJPCm8Xn_LWYbbHDf8");

            Cloudinary cloudinaryUtility = new Cloudinary(cloudinaryAcc);

            this.cloudinaryService = new CloudinaryService(cloudinaryUtility);
            this.userService       = new UsersService(this.usersRepository, this.imagesRepository, this.cloudinaryService);

            this.pageHeaderService = new PageHeaderService(this.pageHeadersRepository, this.cloudinaryService);
            this.sectionService    = new SectionService(this.sectionRepository);
            this.postService       = new PostService(this.postsRepository, this.userService, this.pageHeaderService, this.sectionService);
        }