Exemplo n.º 1
0
        public void TripleEndpointUnitTest_CreateTripleAsync_ArgumentNullException()
        {
            //assemble
            Mock <AccessManagerBaseMock> accessManager = new Mock <AccessManagerBaseMock>(string.Empty);
            TripleEndpoint tripleEndpoint = new TripleEndpoint(accessManager.Object);

            //act
            tripleEndpoint.CreateTripleAsync(() => { }, (ex) => { }, null);

            //assert
        }
Exemplo n.º 2
0
        public void TripleEndpointUnitTest_DeleteTriple_ArgumentNullException()
        {
            //assemble
            Mock <AccessManagerBaseMock> accessManager = new Mock <AccessManagerBaseMock>(string.Empty);
            TripleEndpoint tripleEndpoint = new TripleEndpoint(accessManager.Object);

            //act
            tripleEndpoint.DeleteTriple(null);

            //assert
        }
Exemplo n.º 3
0
        public void TripleEndpointUnitTest_CreateTriple_ArgumentException()
        {
            //assemble
            Mock <AccessManagerBaseMock> accessManager = new Mock <AccessManagerBaseMock>(string.Empty);
            TripleEndpoint tripleEndpoint = new TripleEndpoint(accessManager.Object);
            TripleModel    triple         = new TripleModel();

            //act
            tripleEndpoint.CreateTriple(triple);

            //assert
        }
Exemplo n.º 4
0
        public void TripleEndpointUnitTest_DeleteTripleAsync_ArgumentException()
        {
            //assemble
            Mock <AccessManagerBaseMock> accessManager = new Mock <AccessManagerBaseMock>(string.Empty);
            TripleEndpoint tripleEndpoint = new TripleEndpoint(accessManager.Object);
            TripleModel    triple         = new TripleModel();

            //act
            tripleEndpoint.DeleteTripleAsync(() => { }, (ex) => { }, triple);

            //assert
        }
Exemplo n.º 5
0
        public void TripleEndpointUnitTest_CreateTripleAsync_Success()
        {
            //assemble
            Mock <AccessManagerBaseMock> accessManager = new Mock <AccessManagerBaseMock>(string.Empty);
            TripleEndpoint tripleEndpoint = new TripleEndpoint(accessManager.Object);
            TripleModel    triple         = new TripleModel
            {
                Subject   = "a",
                Predicate = "b",
                Object    = "c"
            };

            //act
            tripleEndpoint.CreateTripleAsync(() => { }, (ex) => { }, triple);

            //assert
        }
Exemplo n.º 6
0
        public void TripleEndpointUnitTest_DeleteTriple_Success()
        {
            //assemble
            Mock <AccessManagerBaseMock> accessManager = new Mock <AccessManagerBaseMock>(string.Empty);
            TripleEndpoint tripleEndpoint = new TripleEndpoint(accessManager.Object);
            TripleModel    triple         = new TripleModel
            {
                Subject   = "a",
                Predicate = "b",
                Object    = "c"
            };

            //act
            tripleEndpoint.DeleteTriple(triple);

            //assert
        }