protected CrudViewModelBase(string entityEndpoint)
 {
     DeleteCommand       = new AsyncCommandBase(Delete);
     UpdateCommand       = new AsyncCommandBase(Update);
     CreateCommand       = new AsyncCommandBase(Create);
     CreateModeCommand   = new Command(CreateCommandMethod);
     CreateEntity        = new T1();
     Entities            = new ObservableCollection <T>();
     WebApiEntityService = new WebApiEntityService <T, T1>(entityEndpoint);
     Initialization      = Initialize();
 }
Example #2
0
 public void Sut_ShouldBeAsyncCommand(
     AsyncCommandBase sut)
 {
     sut.Should().BeAssignableTo <IAsyncCommand>();
 }
 public CancelAsyncCommand(AsyncCommandBase asyncCommand)
 {
     this._asyncCommand = asyncCommand;
 }