public async Task <AppClinetOutput> Add(AppClinetInput appClinetInput) { if (!UrlChecker.CheckIsValid(appClinetInput.RetrunUrl, UriHostNameType.Dns)) { return(null); } AppClient appClient = new AppClient() { ClientSecret = Base64UrlFactory.Create(), ClientType = appClinetInput.ClientType, RetrunUrl = appClinetInput.RetrunUrl }; var client = _appClientRepository.Add(appClient); await _unitOfWork.CommitAsync(); return(Mapper.Map <AppClinetOutput>(client)); }
public void Test_Create() { var encryption = new Base64UrlFactory(); var result = encryption.Create("123456"); }