コード例 #1
0
        public void Should_Contructor_CreateEntity()
        {
            var plaintRequest = new PlaintRequest(0, _offerId, _plaintReason, _attachments, _isEscalation);

            plaintRequest.ShouldNotBeNull();
            plaintRequest.State.ShouldBe(SharedKernal.ObjectState.Added);
            plaintRequest.Attachments.ShouldNotBe(null);
            plaintRequest.Attachments[0].State.ShouldBe(SharedKernal.ObjectState.Added);
        }
コード例 #2
0
        public void Should_UpdateNotes_CreateEntity()
        {
            var _notes        = "Test Notes";
            var plaintRequest = new PlaintRequest();

            plaintRequest.UpdateNotes(_notes);
            plaintRequest.ShouldNotBeNull();
            plaintRequest.Notes.ShouldBe(_notes);
            plaintRequest.State.ShouldBe(SharedKernal.ObjectState.Added);
        }
コード例 #3
0
        public void Should_UpdatePlaintRequest()
        {
            var plaintRequest = new PlaintRequest();

            plaintRequest.UpdatePlaintRequest(_plaintRequestId, _offerId, _plaintReason, _attachments, _isEscalation);
            plaintRequest.ShouldNotBeNull();
            plaintRequest.State.ShouldBe(SharedKernal.ObjectState.Added);
            plaintRequest.Attachments.ShouldNotBe(null);
            plaintRequest.Attachments[0].State.ShouldBe(SharedKernal.ObjectState.Added);
        }
コード例 #4
0
        public void Should_UpdateNotes_UpdateEntity()
        {
            var _notes        = "Test Notes";
            var plaintRequest = new PlaintRequest(_plaintRequestId, _offerId, _plaintReason, _attachments, _isEscalation);

            plaintRequest.UpdateNotes(_notes);
            plaintRequest.ShouldNotBeNull();
            plaintRequest.Notes.ShouldBe(_notes);
            plaintRequest.State.ShouldBe(SharedKernal.ObjectState.Added);
        }
コード例 #5
0
        public void Should_Empty_Construct_PlaintRequest()
        {
            var plaintRequest = new PlaintRequest();

            plaintRequest.ShouldNotBeNull();
        }