public (IAccountRepository, IBusinessContext) GetNewAccountRepository() { IRepositoryContextMock Repository = RepositoryContext(); SeedData(Repository.Context); IBusinessContext Business = BusinessContext(Repository); IAccountRepository AccountRepository = new AccountRepMock(Repository); return(AccountRepository, Business); }
public (IAccountRepository, IAccountBusiness) GetNewAccount() { IRepositoryContextMock repository = RepositoryContext(); SeedData(repository.Context); IBusinessContext business = BusinessContext(repository); IAccountRepository AccountRepository = new AccountRepMock(repository); IProfileRepository profileRep = new ProfileRepMock(repository); ICreateNewOccurrence occurrence = new OccurrenceSuccessMock(); ISendWelcomeEmail email = new SendMailSuccessMock(); IAccountBusiness AccountBusiness = new AccountBsMock(business, AccountRepository, profileRep, occurrence, email); return(AccountRepository, AccountBusiness); }
private IBusinessContext BusinessContext(IRepositoryContextMock repository = null) => new BusinessContextMock(repository ?? RepositoryContext());
public BusinessContextMock(IRepositoryContextMock application) { this.application = application; }
public ProfileRepMock(IRepositoryContextMock repository) { this.repository = repository; }
public AccountRepMock(IRepositoryContextMock repository) { this.repository = repository; }