Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        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);
                }

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