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

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

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

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

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

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