Exemple #1
0
        public Customer_ As(ICustomerDescription kundenBeschreibung)
        {
            var modelCustomer = new Customer(Customer_.LabelConcept, kundenBeschreibung,
                                             _modelContext.ParentAceptanceCriterion.ParentCustomer.ParentUserStory);

            _modelContext.ParentAceptanceCriterion.
                ParentCustomer.
                ParentUserStory.AddCustomer(modelCustomer);

            return new Customer_(modelCustomer, ParentGiven.
                                                ParentAceptanceCriterion.
                                                ParentCustomer.
                                                ParentRequirement);
        }
        private void WriteAcceptanceInfo(Customer customer)
        {
            foreach (var acceptanceCriterion in customer.AcceptanceCriteria)
            {
                Console.WriteLine(IndentAceptanceCriteria + acceptanceCriterion.Label);
                WriteNotes(acceptanceCriterion.Notes, indent: IndentAceptanceCriteria + NoteIndent);

                if (!acceptanceCriterion.IsDraft)
                {
                    if (acceptanceCriterion.HasContext)
                    {
                        Console.WriteLine(IndentContext + acceptanceCriterion.Context.Label);
                        WriteNotes(acceptanceCriterion.Context.Notes, indent: IndentContext + NoteIndent);

                        foreach(var contextInfo in acceptanceCriterion.Context.Settings)
                            Console.WriteLine(IndentContextSetting + contextInfo.Label + _assertionActionToString.GetString(contextInfo.Action));

                    }

                    WriteAssertionInfo(acceptanceCriterion);
                }

            }
        }
 public AcceptanceCriterion(string labelConcept, string acceptanceContent, Customer parentCustomer)
     : base(labelConcept, acceptanceContent)
 {
     ParentCustomer = parentCustomer;
 }
Exemple #4
0
 public Feature AddSponsor(Customer customer)
 {
     Customers.Add(customer);
     return this;
 }
Exemple #5
0
 public void AddCustomer(Customer customer)
 {
     Customers.Add(customer);
 }
Exemple #6
0
 public Customer_(Customer modelCustomer, Requirement_ parentRequirement)
     : base(parentRequirement)
 {
     _modelCustomer = modelCustomer;
     ParentRequirement = parentRequirement;
 }
Exemple #7
0
 public Kunde Als(ICustomerDescription kunde)
 {
     var modelCustomer = new Customer(Kunde.LabelConcept, kunde, _modelUserStory);
     _modelUserStory.AddCustomer(modelCustomer);
     return new Kunde(modelCustomer, this);
 }
Exemple #8
0
 public Kunde Als(string name)
 {
     var modelCustomer = new Customer(Kunde.LabelConcept, name, _modelUserStory);
     _modelUserStory.AddCustomer(modelCustomer);
     return new Kunde(modelCustomer, this);
 }
Exemple #9
0
 public Customer_ As(ICustomerDescription customer)
 {
     var modelCustomer = new Customer(Customer_.LabelConcept, customer, _modelUserStory);
     _modelUserStory.AddCustomer(modelCustomer);
     return new Customer_(modelCustomer, this);
 }
Exemple #10
0
 public Customer_ As(string name)
 {
     var modelCustomer = new Customer(Customer_.LabelConcept, name, _modelUserStory);
     _modelUserStory.AddCustomer(modelCustomer);
     return new Customer_(modelCustomer, this);
 }