public WritingCompanyManager(IUserManager userManager,
                              ICacheStoreManager cacheStoreManager,
                              ILogManager logManager,
                              IWritingCompanyRepository writingCompanyRepository,
                              IWritingCompanyTransformationManager writingCompanyTransformationManager)
     : base(userManager, cacheStoreManager, logManager)
 {
     _writingCompanyRepository            = ValidateRepository(writingCompanyRepository);
     _writingCompanyTransformationManager = ValidateManager(writingCompanyTransformationManager);
 }
        private WritingCompaniesController CreateWritingCompanyController(HttpRequestMessage httpRequest, IWritingCompanyRepository writingCompanyRepository)
        {
            WritingCompanyManager      writingCompanyManager    = new WritingCompanyManager(userManager.Object, cacheStoreManager.Object, mockLogManager.Object, writingCompanyRepository, transformationManager);
            DealAPIManager             dealAPIManager           = new DealAPIManager(userManager.Object, cacheStoreManager.Object, mockLogManager.Object, writingCompanyManager);
            WritingCompaniesController writingCompanyController = new WritingCompaniesController(userManager.Object, dealAPIManager)
            {
                Request       = httpRequest,
                Configuration = new HttpConfiguration()
            };

            return(writingCompanyController);
        }