Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FIT-Connect-SDK - .NET
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FIT-Connect
FIT-Connect-SDK - .NET
Commits
2222ead8
Commit
2222ead8
authored
7 months ago
by
Klaus Fischer
Browse files
Options
Downloads
Patches
Plain Diff
update test, ditched obsolete functions with new versions
parent
0f3ab28a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!125
Feature/1522 chunking
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
FitConnect/ClientFactory.cs
+2
-2
2 additions, 2 deletions
FitConnect/ClientFactory.cs
Tests/BasicUnitTest/ChunkingTests.cs
+1
-1
1 addition, 1 deletion
Tests/BasicUnitTest/ChunkingTests.cs
Tests/E2ETest/AutoRejectReplyChannel.cs
+5
-5
5 additions, 5 deletions
Tests/E2ETest/AutoRejectReplyChannel.cs
with
8 additions
and
8 deletions
FitConnect/ClientFactory.cs
+
2
−
2
View file @
2222ead8
...
...
@@ -16,7 +16,7 @@ public static class ClientFactory {
#endif
}
[
Obsolete
]
[
Obsolete
(
$"Use
{
nameof
(
CreateSenderClient
)}
instead"
)
]
public
static
ISender
GetSenderClient
(
FitConnectEnvironment
environment
,
string
clientId
,
string
clientSecret
,
ILogger
?
logger
=
null
)
=>
CreateSenderClient
(
environment
,
clientId
,
clientSecret
,
logger
);
...
...
@@ -40,7 +40,7 @@ public static class ClientFactory {
}
}
[
Obsolete
]
[
Obsolete
(
$"Use
{
nameof
(
CreateSubscriberClient
)}
instead"
)
]
public
static
ISubscriber
GetSubscriberClient
(
FitConnectEnvironment
environment
,
string
clientId
,
string
clientSecret
,
List
<
string
>
privateDecryptionKeys
,
string
privateSigningKey
,
ILogger
?
logger
=
null
)
=>
CreateSubscriberClient
(
environment
,
clientId
,
clientSecret
,
privateDecryptionKeys
,
...
...
This diff is collapsed.
Click to expand it.
Tests/BasicUnitTest/ChunkingTests.cs
+
1
−
1
View file @
2222ead8
...
...
@@ -8,7 +8,7 @@ using NUnit.Framework;
namespace
BasicUnitTest
;
public
class
ChunkingTests
{
private
string
_originalFileSha
;
private
string
?
_originalFileSha
;
[
SetUp
]
public
void
Setup
()
{
...
...
This diff is collapsed.
Click to expand it.
Tests/E2ETest/AutoRejectReplyChannel.cs
+
5
−
5
View file @
2222ead8
...
...
@@ -27,11 +27,11 @@ public class AutoRejectReplyChannel : EndToEndTestBase {
Sender_GetEventLog_AfterAccepting
();
Sender_GetSubmissionState_AfterAccepting
();
Sender_GetStatus_AfterAccepting
();
// Ignore - missing feature from other branch, reactivate after merge 717
// SendingSubmissionWithReplyChannel_ToDestinationWithoutReplyChannel_ThrowsError()
}
private
void
SendingSubmission
()
{
var
outgoing
=
SendableSubmission
.
Builder
()
.
SetDestination
(
Settings
.
DestinationId
)
...
...
@@ -155,11 +155,11 @@ public class AutoRejectReplyChannel : EndToEndTestBase {
problems
?.
Where
(
p
=>
p
.
Title
==
"Reply channel is not supported"
).
Should
()
.
NotBeNullOrEmpty
();
}
private
void
SendingSubmissionWithReplyChannel_ToDestinationWithoutReplyChannel_ThrowsError
()
{
var
container
=
Container
.
Create
(
"NoReplyChannel"
);
var
settings
=
container
.
Resolve
<
IFitConnectSettings
>();
var
sender
=
ClientFactory
.
Get
SenderClient
(
FitConnectEnvironment
.
Test
,
var
sender
=
ClientFactory
.
Create
SenderClient
(
FitConnectEnvironment
.
Test
,
settings
.
SenderClientId
,
settings
.
SenderClientSecret
);
var
outgoing
=
SendableSubmission
.
Builder
()
.
SetDestination
(
settings
.
DestinationId
)
...
...
@@ -176,7 +176,7 @@ public class AutoRejectReplyChannel : EndToEndTestBase {
sender
.
GetStatusForSubmissionAsync
(
sent
).
Result
.
SubmissionState
.
Should
()
.
Be
(
EventType
.
Submit
);
var
subscriber
=
ClientFactory
.
Get
SubscriberClient
(
FitConnectEnvironment
.
Test
,
var
subscriber
=
ClientFactory
.
Create
SubscriberClient
(
FitConnectEnvironment
.
Test
,
settings
.
SubscriberClientId
,
settings
.
SubscriberClientSecret
,
settings
.
PrivateDecryptionKeys
,
settings
.
PrivateSigningKey
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment