public void Initialise()
        {
            var configuration = CreditCardData.GetCreditCardPattern();

            var task = new Entity(Entities.Task, taskId);

            task.Attributes.Add(Attributes.Task.Subject, "subject");
            task.Attributes.Add(Attributes.Task.Description, "description");

            context = new XrmFakedContext();
            context.Initialize(new List <Entity>()
            {
                configuration, task
            });
        }
Example #2
0
        public void Initialise()
        {
            var configuration = CreditCardData.GetCreditCardPattern();

            var assistanceRequest = new Entity(Entities.AssistanceRequest, this.assistanceRequestId);

            assistanceRequest.Attributes.Add(Attributes.AssistanceRequest.ExchangeItemId, "exchangeitem");
            assistanceRequest.Attributes.Add(Attributes.AssistanceRequest.Description, "description");

            context = new XrmFakedContext();
            context.Initialize(new List <Entity>()
            {
                configuration, assistanceRequest
            });
        }
        public void Initialise()
        {
            var configuration = CreditCardData.GetCreditCardPattern();

            var appointment = new Entity(Entities.Appointment, this.appointmentId);

            appointment.Attributes.Add(Attributes.Appointment.Subject, "subject");
            appointment.Attributes.Add(Attributes.Appointment.Description, "description");

            context = new XrmFakedContext();
            context.Initialize(new List <Entity>()
            {
                configuration, appointment
            });
        }