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); }
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); }
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); }
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); }
public void Should_Empty_Construct_PlaintRequest() { var plaintRequest = new PlaintRequest(); plaintRequest.ShouldNotBeNull(); }