Skip to content

Commit

Permalink
Adição de autenticação.
Browse files Browse the repository at this point in the history
  • Loading branch information
govinda777 committed Aug 31, 2017
1 parent 9ca845a commit b83a673
Show file tree
Hide file tree
Showing 123 changed files with 25,688 additions and 1,659 deletions.
14 changes: 7 additions & 7 deletions SyonOnline.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ VisualStudioVersion = 15.0.26430.12
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SyonOnline.ServiceReference", "ServiceReference\SyonOnline.ServiceReference.csproj", "{180E9434-69AB-4D7F-BA67-7BCF2C683B62}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SyonOnline.WebApi", "WebApi\SyonOnline.WebApi.csproj", "{D0D8FFE9-C6AE-4B9A-8FD5-695A66A4A863}"
EndProject
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "View", "View\", "{157073D7-3250-4B0F-B1F7-921A442DE6C3}"
ProjectSection(WebsiteProperties) = preProject
TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0"
Expand All @@ -28,7 +26,9 @@ Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "View", "View\", "{157073D7-
SlnRelativePath = "View\"
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SyonOnline.Test", "Test\SyonOnline.Test.csproj", "{42EEA3A0-4305-4E3C-BED5-55F2BA31A7FF}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SyonOnline.Test", "Test\SyonOnline.Test.csproj", "{42EEA3A0-4305-4E3C-BED5-55F2BA31A7FF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SyonOnline.WebApi", "WebApi\SyonOnline.WebApi\SyonOnline.WebApi.csproj", "{E24DF188-5B2A-4B75-A84F-6DEBFD998CB2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -40,10 +40,6 @@ Global
{180E9434-69AB-4D7F-BA67-7BCF2C683B62}.Debug|Any CPU.Build.0 = Debug|Any CPU
{180E9434-69AB-4D7F-BA67-7BCF2C683B62}.Release|Any CPU.ActiveCfg = Release|Any CPU
{180E9434-69AB-4D7F-BA67-7BCF2C683B62}.Release|Any CPU.Build.0 = Release|Any CPU
{D0D8FFE9-C6AE-4B9A-8FD5-695A66A4A863}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D0D8FFE9-C6AE-4B9A-8FD5-695A66A4A863}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D0D8FFE9-C6AE-4B9A-8FD5-695A66A4A863}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D0D8FFE9-C6AE-4B9A-8FD5-695A66A4A863}.Release|Any CPU.Build.0 = Release|Any CPU
{157073D7-3250-4B0F-B1F7-921A442DE6C3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{157073D7-3250-4B0F-B1F7-921A442DE6C3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{157073D7-3250-4B0F-B1F7-921A442DE6C3}.Release|Any CPU.ActiveCfg = Debug|Any CPU
Expand All @@ -52,6 +48,10 @@ Global
{42EEA3A0-4305-4E3C-BED5-55F2BA31A7FF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{42EEA3A0-4305-4E3C-BED5-55F2BA31A7FF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{42EEA3A0-4305-4E3C-BED5-55F2BA31A7FF}.Release|Any CPU.Build.0 = Release|Any CPU
{E24DF188-5B2A-4B75-A84F-6DEBFD998CB2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E24DF188-5B2A-4B75-A84F-6DEBFD998CB2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E24DF188-5B2A-4B75-A84F-6DEBFD998CB2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E24DF188-5B2A-4B75-A84F-6DEBFD998CB2}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
1 change: 0 additions & 1 deletion Test/SyonOnline.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

<ItemGroup>
<ProjectReference Include="..\ServiceReference\SyonOnline.ServiceReference.csproj" />
<ProjectReference Include="..\WebApi\SyonOnline.WebApi.csproj" />
</ItemGroup>

<ItemGroup>
Expand Down
30 changes: 11 additions & 19 deletions View/test/acceptance/adqTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,15 @@

var assert = chai.assert;
var async = async;
var soap = $.soap;

var xmlString = ['<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:red="http://schemas.datacontract.org/2004/07/Redecard.Komerci.External.WcfKomerci">',
'<soapenv:Header/>',
'<soapenv:Body>',
'<tem:GetAuthorizedCredit>',
'<tem:request>',
'</tem:request>',
'</tem:GetAuthorizedCredit>',
'</soapenv:Body>',
'</soapenv:Envelope>'];

describe('Validação ADQ v1', function () {
describe('Validação ADQ', function () {

var resultTest = [{}, {}];

$.ajax({
type: "GET", //GET or POST or PUT or DELETE verb
async: false,
url: 'http://localhost:50530/api/adquirencia/validateall', // Location of the service
url: 'http://localhost:8082/api/adquirencia/validateall', // Location of the service
crossDomain: true,
success: function (data) {//On Successfull service call
resultTest = data;
Expand All @@ -35,20 +24,23 @@ describe('Validação ADQ v1', function () {

async.each(resultTest, function (item) {

describe('Test Case ' + item.isPass , function () {
describe('Test Case ' + item.order , function () {

it("isPass :" + item.isPass, function (done) {

assert.equal(item.isPass, true);
done();
});

it("message :" + item.message, function (done) {

assert.equal(item.message, "");
done();
});
if (item.message != '')
{
it("message :" + item.message, function (done) {

assert.equal(item.message, "");
done();
});
}

it("totalTime :" + item.totalTime, function (done) {
var timeout = item.totalTime > 4;

Expand Down
Binary file removed WebApi/.DS_Store
Binary file not shown.
22 changes: 0 additions & 22 deletions WebApi/Properties/launchSettings.json

This file was deleted.

45 changes: 0 additions & 45 deletions WebApi/SyonOnline.WebApi.csproj

This file was deleted.

Binary file removed WebApi/SyonOnline.WebApi/.DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions WebApi/SyonOnline.WebApi/.bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"directory": "wwwroot/lib"
}
Loading

0 comments on commit b83a673

Please sign in to comment.