public void AUT_SocialEngineProxy_ClearTransaction_Static_Method_DirectCall_Throw_Exception_Test() { // Arrange var transactionId = CreateType <Guid>(); var contextWeb = CreateType <SPWeb>(); Action executeAction = null; // Act executeAction = () => SocialEngineProxy.ClearTransaction(transactionId, contextWeb); // Assert Should.Throw <Exception>(executeAction); }
public void AUT_SocialEngineProxy_ProcessActivity_Static_Method_DirectCall_Throw_Exception_Test() { // Arrange var objectKind = CreateType <ObjectKind>(); var activityKind = CreateType <ActivityKind>(); var data = CreateType <Dictionary <string, object> >(); var contextWeb = CreateType <SPWeb>(); Action executeAction = null; // Act executeAction = () => SocialEngineProxy.ProcessActivity(objectKind, activityKind, data, contextWeb); // Assert Should.Throw <Exception>(executeAction); }
public void AUT_SocialEngineProxy_GetTransaction_Static_Method_DirectCall_Throw_Exception_Test() { // Arrange var webId = CreateType <Guid>(); var listId = CreateType <Guid>(); var itemId = CreateType <int>(); var contextWeb = CreateType <SPWeb>(); Action executeAction = null; // Act executeAction = () => SocialEngineProxy.GetTransaction(webId, listId, itemId, contextWeb); // Assert Should.Throw <Exception>(executeAction); }
public void AUT_SocialEngineProxy_GetActivities_Static_Method_DirectCall_Throw_Exception_Test() { // Arrange var contextWeb = CreateType <SPWeb>(); var minDate = CreateType <DateTime?>(); var maxDate = CreateType <DateTime?>(); var page = CreateType <int?>(); var limit = CreateType <int?>(); var threadId = CreateType <Guid?>(); Action executeAction = null; // Act executeAction = () => SocialEngineProxy.GetActivities(contextWeb, minDate, maxDate, page, limit, threadId); // Assert Should.Throw <Exception>(executeAction); }