Git Repository Public Repository

CPE_learningsite

URLs

Copy to Clipboard

This repository has no backups
This repository's network speed is throttled to 100KB/sec

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
´╗┐using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using CPE.App.Api.Helpers;
using CPE.App.Api.Models;
using Newtonsoft.Json;
using Shouldly;

namespace CPE.App.Api.Test
{
    [TestClass]
    public class StatementControllerTest
    {
        [TestMethod]
        public void HandleStatementTest()
        {
            var tincanObject =
                "{\"id\":null,\"actor\":{\"name\":\"Patricia Berry\",\"mbox\":\"mailto:pberry@cpeincmail.com\"},\"verb\":{\"id\":\"http://adlnet.gov/expapi/verbs/passed\"},\"result\":{\"score\":{\"scaled\":1,\"raw\":0,\"min\":0,\"max\":0},\"success\":true,\"completion\":false},\"timestamp\":\"08/28/2021 16:38:19\",\"version\":null,\"object\":{\"id\":\"https://learning.elucidat.com/course/611ecf21dbbae-611fca09461e2\",\"definition\":{\"name\":{\"en-US\":\"Ethics for Hawaii CPAs  \"}}}}";
            TinCanStatementModel statement = JsonConvert.DeserializeObject<TinCanStatementModel>(tincanObject);
            var done = TinCanHelper.HandleStatement(statement);
            done.ShouldBe(true);
        }
    }
}

Commits for CPE_learningsiteCPE/CPE.App/CPE.App.Api.Test/StatementControllerTest.cs

Diff revisions: vs.
Revision Author Commited Message
d90493 ... v.shishlov Sun 29 Aug, 2021 15:28:47 +0000

add ssl 1.2