public static User CreateNewUser(IUserRepository userRepo) { return(userRepo.GetById( userRepo.Create(TestProvider.GetNewUser()))); }
public static Category CreateNewCategory(ICategoryRepository categoryRepository, Guid createUserId, Guid groupId) { return(categoryRepository.GetById( categoryRepository.Create(TestProvider.GetNewCategory(createUserId, groupId)))); }