public void UpdateExpiryDateWithoutChangeStateTest() { BillInfo bill = billDefaults.returnBillInfoDefaults(); var expiryDate = DateTime.Today; bill.UpdateExpiryDateWithoutChangeState(expiryDate.Date); bill.ShouldNotBeNull(); bill.AmountDue.ShouldBe(billDefaults._amountDue); bill.DueDate.ShouldBe(billDefaults._dueDt); bill.AgencyCode.ShouldBe(billDefaults._agencyCode); bill.CreatedAt.Date.ShouldBe(DateTime.Now.Date); bill.IsActive.ShouldBe(true); bill.State.ShouldBe(ObjectState.Added); bill.ActionStatus.ShouldBeNull(); bill.ExpiryDate.Date.ShouldBe(expiryDate.Date); }