public Given_an_OdcmClass_Entity_Collection_ExecuteAsync_Method() { Init(null, true); _executeAsyncMethod = CollectionInterface.GetMethod("ExecuteAsync", PermissiveBindingFlags, null, new Type[0], null); }
public Given_an_OdcmClass_Entity_Collection_GetById_Method() { base.Init(); _getByIdMethod = CollectionInterface .GetMethod( "GetById", ConcreteType.GetKeyProperties() .Select(p => p.PropertyType) .ToArray()); }
public Given_an_OdcmClass_Entity_Collection_AddAsync_Method() { Init(null, true); _addAsyncMethod = CollectionInterface.GetMethod("Add" + Class.Name + "Async", PermissiveBindingFlags, null, new[] { ConcreteInterface, typeof(bool) }, null); _entity = new object(); _itemToAdd = ConstructConcreteInstance(); _entityName = Any.AlphanumericString(1); _path = Any.String() + "/" + _entityName; _dscwMock = new Mock <DataServiceContextWrapper>(MockBehavior.Strict); _saveChangesAsyncReturnValue = null; ConfigureCollectionInstance(); }