private bool CheckTimeZoneCode(string timeZoneId)
 {
     if (timeZoneId == null)
     {
         return(false);
     }
     return(_timeService.CheckTimeZoneId(timeZoneId));
 }
Пример #2
0
        public void Setup()
        {
            LogHelper.ConfigureConsoleLogger();

            StaticStartup.Startup();

            _newId               = Guid.NewGuid();
            _tenantId            = Guid.NewGuid();
            _branchOfficeService = Substitute.For <IService <BranchOffice> >();
            _tenantIdProvider    = Substitute.For <ITenantIdProvider>();
            _logger              = Substitute.For <ILogger <BranchOfficeController> >();
            _timeService         = Substitute.For <ITimeService>();

            _credentialsService = Substitute.For <IWorkplaceCredentialsService>();
            _tenantIdProvider.GetTenantId().Returns(_tenantId);
            _timeService.CheckTimeZoneId(Arg.Any <string>()).Returns(true);
        }