public void ListUserCreatedBusiness_AllParameters() { var internalServiceCallVo = InternalServiceCallVo.ConcreteBuilder .SetToken("0469eba2ddf84cb49eff254fe353638d") .Build(); var output = new ResultSrv <List <BusinessSrv> >(); var listUserCreatedBusinessVo = ListUserCreatedBusinessVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetBizId(new long[] { 13059 }) .SetGuildCode(new [] { "CLOTHING_GUILD" }) .SetOffset(0) .SetSize(0) .SetQuery("") .SetTags(new[] { "tst1", "tst2", "tst3" }) .SetTagTrees(new string[] { }) .SetActive(false) .SetCountry("") .SetState("") .SetCity("") .SetSsoId(0) .SetUsername("") .SetBusinessName("") .SetSheba("") .SetNationalCode("") .SetEconomicCode("") .SetEmail("") .SetCellphone("") .Build(); DealingService.ListUserCreatedBusiness(listUserCreatedBusinessVo, response => Listener.GetResult(response, out output)); Assert.False(output.HasError); }
public void ListUserCreatedBusiness_RequiredParameters() { var internalServiceCallVo = InternalServiceCallVo.ConcreteBuilder .SetToken("0469eba2ddf84cb49eff254fe353638d") .Build(); var output = new ResultSrv <List <BusinessSrv> >(); var listUserCreatedBusinessVo = ListUserCreatedBusinessVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .Build(); DealingService.ListUserCreatedBusiness(listUserCreatedBusinessVo, response => Listener.GetResult(response, out output)); Assert.False(output.HasError); }
public ResultSrv <List <BusinessSrv> > ListUserCreatedBusiness() { try { var output = new ResultSrv <List <BusinessSrv> >(); var listUserCreatedBusinessVo = ListUserCreatedBusinessVo.ConcreteBuilder .SetServiceCallParameters(internalServiceCallVo) .SetBizId(new long[] { 0 }) //.SetGuildCode(new string[]{ "CLOTHING_GUILD"}) //.SetOffset(0) //.SetSize(0) //.SetQuery("") //.SetTags(new []{"tst1","tst2","tst3"}) //.SetTagTrees(new string[]{}) //.SetActive(false) //.SetCountry("") //.SetState("") //.SetCity("") //.SetSsoId(0) //.SetUsername("") //.SetBusinessName("") //.SetSheba("") //.SetNationalCode("") //.SetEconomicCode("") //.SetEmail("") //.SetCellphone("") .Build(); DealingService.ListUserCreatedBusiness(listUserCreatedBusinessVo, response => Listener.GetResult(response, out output)); return(output); } catch (PodException podException) { Console.WriteLine( $"-- {podException.Code}-an error has occured : {Environment.NewLine}{podException.Message}"); throw; } catch (Exception exception) { Console.WriteLine(exception.Message); throw; } }