public void given_information()
 {
     this.Customer = DataSeedUtil.CreateCustomer(this._client);
     this.Product  = DataSeedUtil.CreateProduct(this._client, this.Customer);
     this.Source   = DataSeedUtil.CreateSource(this._client, this.Product);
     this.Threat   = DataSeedUtil.CreateSecurityThreat(this._client);
 }
Ejemplo n.º 2
0
        public async Task <CustomerGetRp> GetCustomerById(Guid teamId)
        {
            Customer customer = await _customerRepository.GetCustomerById(teamId);;

            if (customer == null)
            {
                await _domainManagerService.AddNotFound($"The customer with id {teamId} does not exists or you don't have enough permissions to get it.");

                return(null);
            }

            CustomerGetRp teamGetRp = new CustomerGetRp()
            {
                TeamId     = customer.CustomerId,
                Name       = customer.Name,
                AdminName  = customer.AdminName,
                AdminEmail = customer.AdminEmail
            };

            return(teamGetRp);
        }