public void ChangeStateToUnconfirmed_DocumentsAreSigned_ThrowException()
        {
            var customer = new Customer(Guid.NewGuid());

            customer.SignDocuments();
            Assert.Throws <Exception>(() => customer.ChangeStateToUnconfirmed());
        }
        public void ChangeStateToConfirmed_DocumentsAreSigned_StateChangeToConfirmed()
        {
            var customer = new Customer(Guid.NewGuid());

            customer.SignDocuments();
            customer.ChangeStateToConfirmed();

            Assert.Equal(customer.State, CustomerState.Confirmed);
        }
        public void ChangeStateToUnconfirmed_CustomerStateIsConfirmed_ThrowException()
        {
            var customer = new Customer(Guid.NewGuid());

            customer.SignDocuments();
            customer.ChangeStateToConfirmed();

            Assert.Throws <InvalidOperationException>(() => customer.ChangeStateToConfirmed());
        }