Example #1
0
        public CosmosEmployeeService(ConnectionStringResolver connectionStringResolver, CompanyNameResolver companyNameResolver)
        {
            _companyName = companyNameResolver.GetCompanyName();
            var connectionString = connectionStringResolver.GetConnectionString();

            _cosmosClient = new CosmosClient(connectionString);
        }
Example #2
0
 public FakeEmployeeService(CompanyNameResolver companyNameResolver)
 {
     _isInitialized = false;
     _company       = new Company()
     {
         Name        = companyNameResolver.GetCompanyName(),
         EmployeeIds = new List <string>()
     };
     _employees = new List <Employee>();
 }