Ejemplo n.º 1
0
        public void TestInitialize()
        {
            this.logger = new Mock <ILogger <TimesheetHelper> >();
            this.repositoryAccessors = new Mock <IRepositoryAccessors>();

            this.botSettings = Options.Create(new BotSettings()
            {
                MicrosoftAppId            = string.Empty,
                MicrosoftAppPassword      = string.Empty,
                AppBaseUri                = string.Empty,
                CardCacheDurationInHour   = 12,
                TimesheetFreezeDayOfMonth = 12,
                WeeklyEffortsLimit        = 44,
            });
            this.timesheetHelper = new TimesheetHelper(this.botSettings, this.repositoryAccessors.Object, new TimesheetMapper(), this.logger.Object);
        }
Ejemplo n.º 2
0
        public void TestInitialize()
        {
            this.logger = new Mock <ILogger <TimesheetHelper> >();
            this.repositoryAccessors    = new Mock <IRepositoryAccessors>();
            this.timesheetRepository    = new Mock <ITimesheetRepository>();
            this.conversationRepository = new Mock <IConversationRepository>();
            this.notificationHelper     = new Mock <INotificationHelper>();
            this.adaptiveCardService    = new Mock <IAdaptiveCardService>();
            this.projectRepository      = new Mock <IProjectRepository>();

            this.botSettings = Options.Create(new BotSettings()
            {
                MicrosoftAppId            = string.Empty,
                MicrosoftAppPassword      = string.Empty,
                AppBaseUri                = string.Empty,
                CardCacheDurationInHour   = 12,
                TimesheetFreezeDayOfMonth = 12,
                WeeklyEffortsLimit        = 15,
                DailyEffortsLimit         = 9,
            });
            this.timesheetHelper = new TimesheetHelper(this.botSettings, this.repositoryAccessors.Object, new TimesheetMapper(), this.notificationHelper.Object, this.adaptiveCardService.Object, this.logger.Object);
        }