//create new note applicaiton
 public void CreateNewNoteApplication()
 {
     CreateNewNote.ClickOn();
     NoteDescription.SendKeys(Constant.noteName);
     ConfirmCreateNote.ClickOn();
     softAssert.VerifySuccessMsg();
 }
Пример #2
0
        public ActionResult Add()
        {
            var command = new CreateNewNote();

            command.NoteId = Guid.NewGuid();

            return(View(command));
        }
Пример #3
0
        public ActionResult Add(CreateNewNote command)
        {
            ChannelHelper.Use(NoteController.channelFactory.CreateChannel(), (client) => client.Execute(new ExecuteRequest(command)));

            // Return user back to the index that
            // displays all the notes.));
            return(RedirectToAction("Index", "Note"));
        }
Пример #4
0
        public ActionResult Add(CreateNewNote command)
        {
            var service = new MyNotesCommandServiceClient();

            service.CreateNewNote(command);

            // Return user back to the index that
            // displays all the notes.));
            return(RedirectToAction("Index"));
        }
Пример #5
0
        public ActionResult Add(CreateNewNote command)
        {
            Guid summaryId;

            using (var context = new ReadModelContainer())
            {
                var query = from item in context.TotalsPerDayItemSet
                            where item.Date == System.DateTime.Now.Date
                            orderby item.Date descending
                            select item.SummaryId;

                Guid.TryParse(query.ToString(), out summaryId);
            }
            command.SummaryId = summaryId;
            var service = new MyNotesCommandServiceClient();

            service.CreateNewNote(command);

            // Return user back to the index that
            // displays all the notes.));
            return(RedirectToAction("Index"));
        }
Пример #6
0
 public void CreateNewNote(CreateNewNote command)
 {
     _service.Execute(command);
 }