Example #1
0
 public void OneTimeSetup()
 {
     _deleteSerializedRequestInstanceType    = typeof(DeleteSerializedRequest);
     _deleteSerializedRequestInstanceFixture = this.Create <DeleteSerializedRequest>(true);
     _deleteSerializedRequestInstance        = _deleteSerializedRequestInstanceFixture ?? this.Create <DeleteSerializedRequest>(false);
     CurrentInstance = _deleteSerializedRequestInstanceFixture;
     ConfigureIgnoringTests();
 }
Example #2
0
 public void OneTimeSetup()
 {
     _integrationInstanceType    = typeof(Integration);
     _integrationInstanceFixture = this.Create <Integration>(true);
     _integrationInstance        = _integrationInstanceFixture ?? this.Create <Integration>(false);
     CurrentInstance             = _integrationInstanceFixture;
     ConfigureIgnoringTests();
 }
 public void OneTimeSetup()
 {
     _queryByUniqueIdSerializedRequestInstanceType    = typeof(QueryByUniqueIdSerializedRequest);
     _queryByUniqueIdSerializedRequestInstanceFixture = this.Create <QueryByUniqueIdSerializedRequest>(true);
     _queryByUniqueIdSerializedRequestInstance        = _queryByUniqueIdSerializedRequestInstanceFixture ?? this.Create <QueryByUniqueIdSerializedRequest>(false);
     CurrentInstance = _queryByUniqueIdSerializedRequestInstanceFixture;
     ConfigureIgnoringTests();
 }
 public void OneTimeSetup()
 {
     _bulkDeleteSerializedResponseInstanceType    = typeof(BulkDeleteSerializedResponse);
     _bulkDeleteSerializedResponseInstanceFixture = this.Create <BulkDeleteSerializedResponse>(true);
     _bulkDeleteSerializedResponseInstance        = _bulkDeleteSerializedResponseInstanceFixture ?? this.Create <BulkDeleteSerializedResponse>(false);
     CurrentInstance = _bulkDeleteSerializedResponseInstanceFixture;
     ConfigureIgnoringTests();
 }
Example #5
0
 public void OneTimeSetup()
 {
     _entityKeyInstanceType    = typeof(EntityKey);
     _entityKeyInstanceFixture = this.Create <EntityKey>(true);
     _entityKeyInstance        = _entityKeyInstanceFixture ?? this.Create <EntityKey>(false);
     CurrentInstance           = _entityKeyInstanceFixture;
     ConfigureIgnoringTests();
 }
Example #6
0
 public void OneTimeSetup()
 {
     _userTokenInstanceType    = typeof(UserToken);
     _userTokenInstanceFixture = this.Create <UserToken>(true);
     _userTokenInstance        = _userTokenInstanceFixture ?? this.Create <UserToken>(false);
     CurrentInstance           = _userTokenInstanceFixture;
     ConfigureIgnoringTests();
 }
 public void OneTimeSetup()
 {
     _deleteResponseInstanceType    = typeof(DeleteResponse);
     _deleteResponseInstanceFixture = this.Create <DeleteResponse>(true);
     _deleteResponseInstance        = _deleteResponseInstanceFixture ?? this.Create <DeleteResponse>(false);
     CurrentInstance = _deleteResponseInstanceFixture;
     ConfigureIgnoringTests();
 }
Example #8
0
        public void AUT_Constructor_Integration_Instantiated_Without_Parameter_No_Throw_Exception_Test()
        {
            // Arrange
            Integration instance = null;

            // Act
            var exception = CreateAnalyzer.GetThrownExceptionWhenCreate(out instance);

            // Assert
            instance.ShouldNotBeNull();
            exception.ShouldBeNull();
            _integrationInstanceType.ShouldNotBeNull();
            _integrationInstance.ShouldNotBeNull();
            _integrationInstanceFixture.ShouldNotBeNull();
            _integrationInstance.ShouldBeAssignableTo <Integration>();
            _integrationInstanceFixture.ShouldBeAssignableTo <Integration>();
        }
Example #9
0
        public void AUT_Constructor_DeleteSerializedRequest_Instantiated_Without_Parameter_No_Throw_Exception_Test()
        {
            // Arrange
            DeleteSerializedRequest instance = null;

            // Act
            var exception = CreateAnalyzer.GetThrownExceptionWhenCreate(out instance);

            // Assert
            instance.ShouldNotBeNull();
            exception.ShouldBeNull();
            _deleteSerializedRequestInstanceType.ShouldNotBeNull();
            _deleteSerializedRequestInstance.ShouldNotBeNull();
            _deleteSerializedRequestInstanceFixture.ShouldNotBeNull();
            _deleteSerializedRequestInstance.ShouldBeAssignableTo <DeleteSerializedRequest>();
            _deleteSerializedRequestInstanceFixture.ShouldBeAssignableTo <DeleteSerializedRequest>();
        }
        public void AUT_Constructor_BulkDeleteResponse_Instantiated_Without_Parameter_No_Throw_Exception_Test()
        {
            // Arrange
            BulkDeleteResponse instance = null;

            // Act
            var exception = CreateAnalyzer.GetThrownExceptionWhenCreate(out instance);

            // Assert
            instance.ShouldNotBeNull();
            exception.ShouldBeNull();
            _bulkDeleteResponseInstanceType.ShouldNotBeNull();
            _bulkDeleteResponseInstance.ShouldNotBeNull();
            _bulkDeleteResponseInstanceFixture.ShouldNotBeNull();
            _bulkDeleteResponseInstance.ShouldBeAssignableTo <BulkDeleteResponse>();
            _bulkDeleteResponseInstanceFixture.ShouldBeAssignableTo <BulkDeleteResponse>();
        }
        public void AUT_QueryByIdSerializedResponse_Constructor_Instantiation_With_Parameter_Test()
        {
            // Arrange
            var QueryByIdSerializedResult        = this.CreateType <string>();
            QueryByIdSerializedResponse instance = null;
            Exception creationException          = null;

            // Act
            Action createAction = () => instance = new QueryByIdSerializedResponse(QueryByIdSerializedResult);

            creationException = ActionAnalyzer.GetActionException(createAction);

            // Assert
            instance.ShouldNotBeNull();
            _queryByIdSerializedResponseInstance.ShouldNotBeNull();
            _queryByIdSerializedResponseInstanceFixture.ShouldNotBeNull();
            Should.NotThrow(createAction);
        }
Example #12
0
        public void AUT_QueryByAllSerializedRequest_Constructor_With_Parameter_Created_Instance_Type_Test()
        {
            // Arrange
            var p_strToken = this.CreateType <string>();
            QueryByAllSerializedRequest instance = null;
            Exception creationException          = null;

            // Act
            Action createAction = () => instance = new QueryByAllSerializedRequest(p_strToken);

            creationException = ActionAnalyzer.GetActionException(createAction);

            // Assert
            instance.ShouldNotBeNull();
            _queryByAllSerializedRequestInstance.ShouldNotBeNull();
            _queryByAllSerializedRequestInstanceFixture.ShouldNotBeNull();
            instance.ShouldBeOfType <QueryByAllSerializedRequest>();
        }
Example #13
0
        public void AUT_DeleteSerializedRequest_Constructor_Instantiation_With_Parameter_Test()
        {
            // Arrange
            var p_strToken    = this.CreateType <string>();
            var p_intUniqueId = this.CreateType <int>();
            DeleteSerializedRequest instance = null;
            Exception creationException      = null;

            // Act
            Action createAction = () => instance = new DeleteSerializedRequest(p_strToken, p_intUniqueId);

            creationException = ActionAnalyzer.GetActionException(createAction);

            // Assert
            instance.ShouldNotBeNull();
            _deleteSerializedRequestInstance.ShouldNotBeNull();
            _deleteSerializedRequestInstanceFixture.ShouldNotBeNull();
            Should.NotThrow(createAction);
        }
Example #14
0
        public void AUT_DeleteRequest_Constructor_With_Parameter_Created_Instance_Type_Test()
        {
            // Arrange
            var           p_token           = this.CreateType <UplandIntegrations.TenroxIntegrationService.UserToken>();
            var           p_intUniqueId     = this.CreateType <int>();
            DeleteRequest instance          = null;
            Exception     creationException = null;

            // Act
            Action createAction = () => instance = new DeleteRequest(p_token, p_intUniqueId);

            creationException = ActionAnalyzer.GetActionException(createAction);

            // Assert
            instance.ShouldNotBeNull();
            _deleteRequestInstance.ShouldNotBeNull();
            _deleteRequestInstanceFixture.ShouldNotBeNull();
            instance.ShouldBeOfType <DeleteRequest>();
        }
        public void AUT_BulkDeleteRequest_Constructor_Instantiation_With_Parameter_Test()
        {
            // Arrange
            var p_token                         = this.CreateType <UplandIntegrations.TenroxIntegrationService.UserToken>();
            var p_intUniqueIds                  = this.CreateType <int[]>();
            BulkDeleteRequest instance          = null;
            Exception         creationException = null;

            // Act
            Action createAction = () => instance = new BulkDeleteRequest(p_token, p_intUniqueIds);

            creationException = ActionAnalyzer.GetActionException(createAction);

            // Assert
            instance.ShouldNotBeNull();
            _bulkDeleteRequestInstance.ShouldNotBeNull();
            _bulkDeleteRequestInstanceFixture.ShouldNotBeNull();
            Should.NotThrow(createAction);
        }
Example #16
0
        public void AUT_BulkDeleteSerializedRequest_Constructor_With_Parameter_Created_Instance_Type_Test()
        {
            // Arrange
            var p_strToken     = this.CreateType <string>();
            var p_intUniqueIds = this.CreateType <int[]>();
            BulkDeleteSerializedRequest instance = null;
            Exception creationException          = null;

            // Act
            Action createAction = () => instance = new BulkDeleteSerializedRequest(p_strToken, p_intUniqueIds);

            creationException = ActionAnalyzer.GetActionException(createAction);

            // Assert
            instance.ShouldNotBeNull();
            _bulkDeleteSerializedRequestInstance.ShouldNotBeNull();
            _bulkDeleteSerializedRequestInstanceFixture.ShouldNotBeNull();
            instance.ShouldBeOfType <BulkDeleteSerializedRequest>();
        }