void global::Anabi.DataAccess.Ef.EntityConfigurators.IEntityConfig.SetupEntity(global::Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder) { SetupEntity_ModelBuilder_Delegate del; if (MockBehavior == MockBehavior.Strict) { del = _stubs.GetMethodStub <SetupEntity_ModelBuilder_Delegate>("SetupEntity"); } else { if (!_stubs.TryGetMethodStub <SetupEntity_ModelBuilder_Delegate>("SetupEntity", out del)) { return; } } del.Invoke(modelBuilder); }
T global::UnitBoilerplate.Sandbox.Classes.IGenericInterface <T> .GetAThing() { GetAThing_Delegate del; if (MockBehavior == MockBehavior.Strict) { del = _stubs.GetMethodStub <GetAThing_Delegate>("GetAThing"); } else { if (!_stubs.TryGetMethodStub <GetAThing_Delegate>("GetAThing", out del)) { return(default(T)); } } return(del.Invoke()); }
global::System.Threading.Tasks.Task <global::UWPReactiveUI.Services.Models.HipsterSentence> global::UWPReactiveUI.Services.Interfaces.IHipsterService.GetSentenceAsync(int paragraphs, global::UWPReactiveUI.Services.Models.HipsterType type, bool useHtml) { GetSentenceAsync_Int32_HipsterTypeHipsterTypeLatin_Boolean_Delegate del; if (MockBehavior == MockBehavior.Strict) { del = _stubs.GetMethodStub <GetSentenceAsync_Int32_HipsterTypeHipsterTypeLatin_Boolean_Delegate>("GetSentenceAsync"); } else { if (!_stubs.TryGetMethodStub <GetSentenceAsync_Int32_HipsterTypeHipsterTypeLatin_Boolean_Delegate>("GetSentenceAsync", out del)) { return(Task.FromResult(default(global::UWPReactiveUI.Services.Models.HipsterSentence))); } } return(del.Invoke(paragraphs, type, useHtml)); }
void global::UnitBoilerplate.Sandbox.Classes.ISomeInterface.DoAThing() { DoAThing_Delegate del; if (MockBehavior == MockBehavior.Strict) { del = _stubs.GetMethodStub <DoAThing_Delegate>("DoAThing"); } else { if (!_stubs.TryGetMethodStub <DoAThing_Delegate>("DoAThing", out del)) { return; } } del.Invoke(); }
global::System.Linq.IQueryable <T> global::Anabi.DataAccess.Abstractions.Repositories.IGenericRepository <T> .GetAll() { GetAll_Delegate del; if (MockBehavior == MockBehavior.Strict) { del = _stubs.GetMethodStub <GetAll_Delegate>("GetAll"); } else { if (!_stubs.TryGetMethodStub <GetAll_Delegate>("GetAll", out del)) { return(default(global::System.Linq.IQueryable <T>)); } } return(del.Invoke()); }