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 }
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 }
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 }
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 }
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 }
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 }