示例#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);
        }
示例#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);
                }

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