public void Add()
        {
            IMessenger messanger = new FakeMessenger();

            AsyncTestHelper.SaveOrUpdate(
                () => CreateViewModel(new FakeFilterViewModelFactory()),
                () => new EditableMetadata <PlanCertificate>(EditState.Insert, FakeCreateEntity()),
                edit => { },
                edit =>
            {
                Assert.That(edit, Is.Not.Null);
                Assert.That(edit.Rn, Is.GreaterThan(0));
                Assert.That(messanger.Messages.Count, Is.EqualTo(1));
                Assert.That(messanger.Messages[0].Body, Is.EqualTo(CustomMessages.AddedSuccessfully));
            });
        }
        public void Add()
        {
            IMessenger messanger = new FakeMessenger();

            AsyncTestHelper.SaveOrUpdate(
                () => CreateViewModel(messanger),
                () => new EditableMetadata <PlanReceiptOrder>(EditState.Insert, this.CreateEditableObject()),
                edit => { },
                edit =>
            {
                Assert.That(edit, Is.Not.Null);
                Assert.That(edit.Rn, Is.GreaterThan(0));
                Assert.That(messanger.Messages.Count, Is.EqualTo(1));
                Assert.That(messanger.Messages[0].Body, Is.EqualTo(CustomMessages.AddedSuccessfully));
            });
        }