public async Task DeleteAsync_InvokePropertyDeleted(UniverseSources source)
        {
            var universe     = Universe(source);
            var property     = new AsyncProperty(universe.Properties().Create(""));
            var eventInvoked = false;

            property.PropertyDeleted += (sender, args) => { eventInvoked = true; };

            await property.DeleteAsync();

            Assert.IsTrue(eventInvoked);
            Assert.IsFalse(universe.Properties().Any());
        }
Example #2
0
 public async Task ExecuteAsync(object parameter)
 {
     await _property.DeleteAsync();
 }